Async (mark function as async??)

// https://stackoverflow.com/questions/44106907/when-to-mark-function-as-async

async function fnUsingAsync() {
    // Synchronously throw half of the time
    if (Math.random() < .5)
        throw new Error('synchronous error')

    // Return fulfilled/rejected promises half of the time
    return Math.random() < .5 ?
        Promise.resolve('success') :
        Promise.reject(new Error('asynchronous error');
}

function fnNotUsingAsync(x) {
    // Use the exact same body here tha

Production Data - FG Waterfall

SELECT
    postref,
    pr_codenum,
    pr_descrip,
    fi_origpostref,
    jo_closed,
    Brand,
    ROUND(SUM(quantity), 5) AS completed,
    Stage
FROM
    (
        SELECT
            dbo.dtfifo.fi_id AS id,
            RTRIM(dbo.dtfifo.fi_postref) AS postref,
            RTRIM(dbo.dtfifo.fi_action) AS action,
            RTRIM(dbo.dmprod.pr_codenum) AS pr_codenum,
            dbo.dmprod.pr_descrip,
            dbo.dtfifo.fi_quant AS quantity,
            'JJ-' + REPLACE(RT

Production Data - Relieve

SELECT
    postref,
    pr_codenum,
    pr_descrip,
    fi_userlot,
    fi_origpostref,
    Stage,
    ROUND(SUM(quantity), 5) AS relieved,
    MIN(Date) AS Date
FROM
    (
        SELECT
            dbo.dtfifo2.f2_id AS id,
            RTRIM(dbo.dtfifo2.f2_postref) AS postref,
            RTRIM(dbo.dtfifo2.f2_action) AS action,
            RTRIM(dbo.dmprod.pr_codenum) AS pr_codenum,
            dbo.dmprod.pr_descrip,
            dbo.dtfifo2.f2_oldquan - dbo.dtfifo2.f2_newquan A

flashcardzzz

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Question and Answer App</title>
<style>
  #question-container {
    text-align: center;
    margin-top: 50px;
  }
  #answer-container {
    display: none;
  }
</style>
</head>
<body>

<div id="question-container">
  <h1>Question:</h1>
  <p id="question"></p>
  <div id="answer-container">
    <h2>Answer:</h2>
    <p id="answer"></p>
  </div>
</div>

<script>

Reverse Prefix

/**
 * @param {string} word
 * @param {character} ch
 * @return {string}
 */
var reversePrefix = function(word, ch) {
    // Find the index of the first occurrence of 'ch' in 'word'
    var index = word.indexOf(ch);

    // If 'ch' is not in 'word', return 'word' as is
    if (index === -1) {
        return word;
    }

    // If 'ch' is in 'word', reverse the segment from index 0 to 'index' (inclusive)
    // Slice the segment from 'word', reverse it, and join it back into a string
    var reve

7.3 - A - Facet plots

In order to overcome issues with visualizing datasets containing time series of different scales, you can leverage the `subplots` argument, which will plot each column of a DataFrame on a different subplot. In addition, the layout of your subplots can be specified using the layout keyword, which accepts two integers specifying the number of rows and columns to use.
# Facet plots
```python
df.plot(subplots = True,
	linewidth = 0.5,
	layout = (2, 4),# number of rows and columns to use.  Totals must be greater or equal to the number of time series in dataframe.
	figsize = (16,10), #specify the total size of your graph (which will contain all subgraphs) using the figsize argument.
	sharex = False,  # specify if each subgraph should share the values of their x-axis and y-axis using the sharex and sharey arguments.
	sharey = False) ## specify if each subgraph sh

Créer un AE

{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "toc": "true"
   },
   "source": [
    "# Table of Contents\n",
    " <p><div class=\"lev1 toc-item\"><a href=\"#Utility-Functions\" data-toc-modified-id=\"Utility-Functions-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>Utility Functions</a></div><div class=\"lev1 toc-item\"><a href=\"#MNIST\" data-toc-modified-id=\"MNIST-2\"><span class=\"toc-item-num\">2&nbsp;&nbsp;</span>MNIST</a></div><div class=\"lev2 toc-ite

Flexera App Portal Web Extension Design Flow

# Flexera App Portal Web Extension Design Flow

### Disclaimer

The information provided in this documentation was neither created by, nor is supported by, Flexera. It is my understanding of how the product works based on objective data.

### Preface

This understanding makes the following assumptions:

  - The web browser is Microsoft Edge.
  - The 32-bit web extension supporting files are installed. (MSI)
  - The web extension is installed in the browser. (CRX)
  - The primary computer name di

1.1 - D - Visualization

# Histograms

Histograms allows to inspect the data and uncover its underlying distribution, as well as the presence of outliers and overall spread.

## Histogram using matplotlib
```python
# import matplotlib.pyplot as plt
# import pandas as pd
ax = df['col'].plot(kind = "hist", bins = 20)
ax.set_xlabel("xlabel")
ax.set_ylabel("ylabel")
ax.set_title("title")
plt.show()
```

## Histograms using seaborn
```python
import seaborn as sns
import matplotlib.pyplot as plt
sns.histplot(data = df, x = 'n

6.2 - B - Change time period analysis

Change time period analysis Assumes data contains weekly data, but you may wish to see how these values behave by month of the year. In this case the technique to use is aggregate values in data.
```python
# Aggregate value over time period
# --------------------------------

# > 0. Check index is datetime object
df = df.set_index('dte_col')
# > 1.  Extract month/year
month = df.index.month # year = df.index.year
# > 2. Compute aggregate data
agg_dta = df.groupby(month).mean()
```

6.3 - A - Rolling averages

**Moving averages** In the field of time series analysis, a moving average can be used for many different purposes: - smoothing out short-term fluctuations - removing outliers - highlighting long-term trends or cycles
```python
# Rolling Moving Average
df['mav_col'] = df['num_col'].rolling(windows = int).mean() # where int = number of periods of moving average
```

1.2.3 - A - Managing missing values

## Check which rows have missing values
`df.isnull()` & `df.notnull` returns True or False for every row with missing (or not) missing values.


```python
df.isnull()  # rows with missing values
df.notnull()  # rows with non-null values
```

07.02 - D - Visualizing seasonal averages

# Visualizing seasonal averages
```python
monthly_data = df.groupby(df.index.month).mean() #--> Calculation of monthly mean data
ax = monthly_data.plot()
ax.legend()
```

TransformOrigin trick

div {
	background: lightblue;
	width: 200px;
	height: 200px;
	border: 1px solid red;
	margin: 30px;
}

div.action {
	transition: scale 300ms;
transform-origin: right bottom;  /* zmizi animaci vpravo dole, muzu zadat i px treba 500px bottom , TO je dulezite :) */
	scale: 0;
}

[Flutter] OutlinedInputBorder

import 'dart:ui';

import 'package:flutter/material.dart';

class OutlinedInputBorder extends InputBorder {
  /// Creates a rounded rectangle outline border for an [InputDecorator].
  ///
  /// If the [borderSide] parameter is [BorderSide.none], it will not draw a
  /// border. However, it will still define a shape (which you can see if
  /// [InputDecoration.filled] is true).
  ///
  /// If an application does not specify a [borderSide] parameter of
  /// value [BorderSide.none], the input deco

Get-FlexeraAppPortalNameResolutionStats

Gather statistics from IIS logs to determine which name resolution methods are used and how frequently.
function Get-FlexeraAppPortalNameResolutionStats {
    [CmdletBinding()]
    param(
        [string]$SiteName
        ,
        [int]$Latest = 1
    )
    Import-Module -Name WebAdministration

    $Site = Get-Item -Path IIS:\Sites\$SiteName
    $LogFilesFolderPath = Join-Path -Path ([System.Environment]::ExpandEnvironmentVariables($Site.logfile.directory)) -ChildPath "W3SVC$($Site.ID)"
    $LogFiles = Get-ChildItem -Path "$($LogFilesFolderPath)\*.log" -File | Sort-Object -Property La