π¨βπ»
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 cv2 | |
| import numpy as np | |
| import pyaudio | |
| import librosa | |
| import librosa.display | |
| import matplotlib.pyplot as plt | |
| import time | |
| rate = 16000 | |
| chunk_size = rate // 4 |
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 matching import Player, HospitalResident | |
| from collections import defaultdict | |
| import csv | |
| def read_csv_ranks_v1(fn, other_fields=2): | |
| users = {} | |
| items = [] |
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
| # http://www.saitek.com/uk/prod-bak/multi.html | |
| from pynput.keyboard import Key, Controller | |
| import hid | |
| import time | |
| keyboard = Controller() | |
| name = 'Pro Flight Multi Panel' | |
| vend_id, product_id = None, None |
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
| // Shridux - A superior global state management library | |
| class GlobalStore { | |
| _initState = {}; | |
| _bindings = {}; | |
| setStore(newState) { | |
| for(let key in newState) { | |
| if(!(key in this._bindings)) { |
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 PIL import Image | |
| im = Image.open('banner.png').convert('RGB') | |
| width, height = im.size | |
| col_start = -1 | |
| for c in range(width): | |
| content = False | |
| for r in range(height): | |
| color = im.getpixel((c, r)) | |
| if color != (255, 255, 255): |
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 json | |
| USERNAME = '<adminname>' | |
| BACKUP = '<backup_file>.json' | |
| def parse_item_json(item_json): | |
| name = item_json['item']['type'] | |
| amt = item_json['item'].get('amount', 1) | |
| return name, amt |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import glob | |
| import os | |
| import time | |
| import smartcrop | |
| from PIL import Image | |
| from multiprocessing import Pool | |
| import pickle |
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 json | |
| import sys | |
| import csv | |
| def main(fn): | |
| with open(fn, 'r', newline='') as csvfile: | |
| reader = csv.DictReader(csvfile) | |
| rows = [dict(row) for row in reader] | |
| with open('data.json', 'w') as jsonfile: |
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 React from 'react'; | |
| import { ResponsiveLine } from '@nivo/line' | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| let data = require('./data.json') | |
| function App() { | |
| return ( | |
| <div className="App"> |
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
| sudo apt update | |
| sudo apt-get upgrade -y | |
| sudo apt install openjdk-8-jre-headless tmux | |
| sudo ufw allow 25565 | |
| sudo ufw allow 22 | |
| sudo ufw enable | |
| java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.2.jar nogui | |
| https://launcher.mojang.com/v1/objects/c5f6fb23c3876461d46ec380421e42b289789530/server.jar | |
| \u00A73\u00A7l\u25BC\u00A73\u00A7l Convergent \u00A7rMinecraft |