This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# INSTALL NODE.JS | |
# Update the apt package index: | |
apt update | |
# Install required packges: | |
apt install -y python-software-properties software-properties-common | |
# Download and execute the setup script for Node.js LTS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# INSTALL MINICONDA | |
# Download miniconda: | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
# Make it executable | |
chmod +x Miniconda3-latest-Linux-x86_64.sh | |
# Run with quick setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
import sys | |
import lxml.etree as etree | |
from openpyxl import load_workbook | |
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -it --rm -v "$(pwd)":"/w" -w "/w" python:3.8-slim python scripty.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utility; | |
import java.time.Duration; | |
import java.util.Collections; | |
/** | |
* Author: Claudio "Dna" Bonesana | |
* Project: SimpleProgressBar | |
* Date: 06.10.2021 14:27 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import multiprocessing | |
import signal | |
from multiprocessing import Event | |
class W(multiprocessing.Process): | |
def __init__(self, i: int, event: Event) -> None: | |
super().__init__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel | |
from enum import Enum | |
import json | |
class Season(str, Enum): | |
SPRING = 'spring' | |
SUMMER = 'summer' | |
AUTUMN = 'autumn' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Queue, Process | |
import random | |
import time | |
import signal | |
stop_sentinel = "STOP" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine | |
from sqlalchemy import select, insert, func | |
from tables import Base, Record | |
from time import time | |
import ray | |
import uuid |