Skip to content

Instantly share code, notes, and snippets.

View getjump's full-sized avatar

Pavel Savinov getjump

View GitHub Profile
@getjump
getjump / twitch_predictions.ts
Created November 2, 2021 09:18
Allows to manipulate predictions via chat commands (was done when there were no api interface, mostly broken)
import puppeteer from 'puppeteer';
const fs = require('fs').promises;
const {promisify} = require('util')
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
<?php
class UserOrder
{
public $id;
/** @var string */
public $contactName;
/** @var string */
public $phone;
/** @var string ISO 3166-1 alpha-2 */
public $country;
@getjump
getjump / runner.go
Last active June 23, 2022 11:19
Golang Particle Swarm Optimization runner for FreeFEM
package main
import (
"bytes"
"context"
"fmt"
"log"
"math"
"math/rand"
"os"
@getjump
getjump / sanitizer.py
Created January 25, 2026 23:39
session store sanitizer (privacy respecting)
import argparse
import json
import os
import re
import hashlib
# -----------------------
# Settings / patterns
# -----------------------