HOW TO USE ta (TECHNICAL ANALYSIS)

HOW TO USE ta (TECHNICAL ANALYSIS)
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": [],
      "authorship_tag": "ABX9TyNYiAb5zc03A92DqIhH8xad",
      "include_colab_link": true
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "view-in-github",
        "colab_type": "text"
      },
      "source": [
       

delete lookups

below deletes all rows with matching value for particular lookup_id
delete from lookup_values where lookup_id = 22 and row_number in 
(select row_number from (select row_number from lookup_values where lookup_id = 22 and value like '%steve.anderson%') as foo);


example if from ranger deleting particular email notifications

Promise - withResolvers

// neni nutne vracet new Promise jak je vsude v prikladech

// 1
async function test () {
	let resolve, reject;

const promise = new Promise((res, rej) => {
  resolve = res;
  reject = rej;
});

	setTimeout(() => {
	 Math.random() > 0.5 ? resolve("ok") : reject("not ok");

	}, 1500)

	return promise	
}

test().then(res => console.log(res)).catch(err => console.log(err))


// 2
const { promise, resolve, reject } = Promise.withResolvers();
Math.random() > 0.5 ? resolve("ok") : reject("not ok");

05062024m

inicio{
"host":"81F06BC9938F9D8CAE86EC2D121D",
"porta":"9F9584"
}fim

6.2 - C - Stationarity

# Augmented dicky fuller test
## Theory


## Snippet

```python
# Run the ADF test on the time series
result = adfuller(df["column"])

# Plot the time series
fig, ax = plt.subplots()
df["column"].plot(ax=ax)
plt.show()

# Print the test statistic and the p-value
print('ADF Statistic:', result[0])
print('p-value:', result[1])

print("If p-value < alpha, reject HO, assume series is stationary")
print("If p-value > alpha, accept HO, assume series is not stationary")
```

05052024

inicio{
"host":"0170E84F190967D265F0474C0A",
"porta":"75E559"
}fim

Docker Compose YAML

This example **sets up two services**, a web server using Nginx and a MySQL database. * The web service is using the Nginx image, exposing port 8080 on the host and mapping it to port 80 inside the container. It mounts the local html directory to the container's /usr/share/nginx/html directory for serving static content. * The db service is using the MySQL image, sets up some environment variables for configuring the MySQL database, and mounts the local db_data directory to the container's /var/lib/mysql directory for persistent storage. * Both services are connected to a custom network called mynetwork. _You can save this YAML file as docker-compose.yml in your project directory and run docker-compose up to start both services defined in the file. Make sure to adjust configurations as per your project requirements_
version: '3.8'

services:
  web:
    image: nginx:latest
    ports:
      - "8080:80"
    volumes:
      - ./html:/usr/share/nginx/html
    networks:
      - mynetwork

  db:
    image: mysql:latest
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_DATABASE: mydatabase
      MYSQL_USER: myuser
      MYSQL_PASSWORD: mypassword
    volumes:
      - ./db_data:/var/lib/mysql
    networks:
      - mynetwork

networks:
  mynetwork:

denison_brain_gym_resources

https://fitedukacja.com.pl/fitness-dla-mozgu-czyli-jak-pomnazac-potencjal-tworczy-dzieci-i-uczniow-rozwiniecie-cz-1/
https://fitedukacja.com.pl/jaka-historie-moga-opowiedziec-rzeczy-scenariusz-lekcji-z-motywem-

regex

https://www.codingforentrepreneurs.com/blog/python-regular-expressions/

redshift_optimization

https://www.horsepaste.com/age-quiz

Shopify function: hide payment methods based on country

query RunInput {
  cart {
    deliveryGroups {
      deliveryAddress {
        countryCode
      }
    }
  }
  paymentMethods {
    id
    name
  }
}

wget help

GNU Wget 1.21.2, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:
  -V,  --version                   display the version of Wget and exit
  -h,  --help                      print this help
  -b,  --background                go to background after startup
  -e,  --execute=COMMAND           execute a `.wgetrc'-style command

Logging and input file:
  -q,  --quiet                     quiet (no o

Delete Node

/**
 * Definition for singly-linked list.
 * function ListNode(val) {
 *     this.val = val;
 *     this.next = null;
 * }
 */
/**
 * @param {ListNode} node
 * @return {void} Do not return anything, modify node in-place instead.
 */
var deleteNode = function(node) {
    // Copy the value of the next node to the current node.
    // This effectively "deletes" the current node's value by overwriting it.
    node.val = node.next.val;

    // Delete the next node by skipping over it in the list.
   

Combinators vs. Monad Transformers vs algebraic effects (theoretical)

All in scala 3.3.3 (except algebraic effects, this is theoretical)
LeagueApi.getAllMatches(puuid, oldIds, matchCountRef)
  .metered(3.seconds)
  .evalMap(_.flatTraverse(LeagueDb.insertMatchIfUnique(_).attempt)
    <* matchCountRef.update(_.decrement)
    <* IO.whenA(keys.nonEmpty)(cache.del(keys*).void))
  .compile.drain

Num Rescue Boats

/**
 * @param {number[]} people
 * @param {number} limit
 * @return {number}
 */
var numRescueBoats = function(people, limit) {
    // Sort the people array in ascending order
    people.sort((a, b) => a - b);
    
    // Initialize two pointers, one at the start of the array (i) and one at the end (j)
    let i = 0, j = people.length - 1;
    
    // Initialize the number of boats needed to 0
    let numBoats = 0;
    
    // While the start pointer is less than or equal to the end pointer