Skip to content

Instantly share code, notes, and snippets.

View jesterjunk's full-sized avatar

jesterjunk

View GitHub Profile
@jesterjunk
jesterjunk / generate_hcn.py
Created March 31, 2022 12:45 — forked from dario2994/generate_hcn.py
Highly composite numbers list
#!/usr/bin/env python3
# This program prints all hcn (highly composite numbers) <= MAXN (=10**18)
#
# The value of MAXN can be changed arbitrarily. When MAXN = 10**100, the
# program needs less than one second to generate the list of hcn.
from math import log
MAXN = 10**18
@jesterjunk
jesterjunk / waitForKeyElements.js
Created February 14, 2022 06:51 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@jesterjunk
jesterjunk / start_steam.bat
Created February 11, 2022 14:01 — forked from uugr/start_steam.bat
Start Steam via Batch Script (Switch Account)
::---------------------USAGE -----------
::Create a shortcut for steam.exe and add "-login username password" parameters to target w/o quotes
::Replace Shortcut Where You Want
::Edit Directory and name of the shorcut in :start_steam section for yourself
@echo off
tasklist /FI "IMAGENAME eq steam.exe" 2>NUL | find /I /N "steam.exe">NUL
if %ERRORLEVEL%==0 goto :kill
if %ERRORLEVEL%==1 goto :start_steam
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0)
@jesterjunk
jesterjunk / sublime-text-logo.svg
Created October 28, 2020 05:32 — forked from tancredi/sublime-text-logo.svg
SublimeText simplified logo (SVG)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jesterjunk
jesterjunk / encode.sh
Created April 5, 2020 09:55 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
@jesterjunk
jesterjunk / ResizableSketch.pde
Last active August 16, 2019 23:53 — forked from timpulver/ResizableSketch.pde
[Processing] Make window/frame resizable
void setup(){
surface.setResizable(true);
//...
}
// tags: processing, p5, frame, java, resize, window
@jesterjunk
jesterjunk / config-highlight.cfg
Created October 23, 2015 07:09 — forked from jaimergp/config-highlight.cfg
Dark highlighting theme for Python IDLE based on SublimeText's Monokai color scheme
# Place this file inside your ~/.idlerc/ folder
# or paste its contents inside
# /path/to/python/idlelib/config-highlight.def
# Adapted from SublimeText's Monokai
[monokai]
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822