Skip to content

Instantly share code, notes, and snippets.

View mtimkovich's full-sized avatar
🐢

Max Timkovich mtimkovich

🐢
View GitHub Profile
@mtimkovich
mtimkovich / fzcl.clj
Last active July 13, 2020 20:09
Fuzzy Clock in Clojure
(def words {
1 "one"
2 "two"
3 "three"
4 "four"
5 "five"
6 "six"
7 "seven"
8 "eight"
9 "nine"
@mtimkovich
mtimkovich / garpr_norcal2020.txt
Last active May 29, 2020 02:56
Tournaments on GarPR from 2020
https://sjsumelee.challonge.com/FSF178Singles
https://smash.gg/tournament/the-farm-7/events/melee-singles/overview
https://smash.gg/tournament/the-people-s-tuesday-29/events/melee-singles/brackets/716857/1158772
https://challonge.com/made124singles
https://sjsumelee.challonge.com/FSF179Singles
https://smash.gg/tournament/emperatriz-del-emporio/events/singles/brackets/715540/1157033
https://smash.gg/tournament/the-farm-8/events/melee-singles/overview
https://smash.gg/tournament/wednesday-night-fights-2020-x-oakland-episode-2/events/super-smash-bros-melee-singles/brackets/733428/1180535/standings
https://sjsumelee.challonge.com/FSF180Singles
https://challonge.com/made125singles
@mtimkovich
mtimkovich / garpr_norcal.txt
Last active May 29, 2020 02:48
All Norcal GarPR Tournaments
http://challonge.com/meleethebeatdown14singles
http://challonge.com/LCF17
http://challonge.com/phoenixunderground36
https://smash.gg/tournament/mythic-melee-mondays-9/events/melee-singles/brackets/92613
http://challonge.com/meleethebeatdown15
http://challonge.com/MADE23Singless
http://sjsumelee.challonge.com/FSF39singles
http://challonge.com/LCF18
https://smash.gg/tournament/bam-to-genesis-31/events/melee-singles/brackets
https://smash.gg/tournament/norcal-validated-featuring-professor-pro-genesis-4-warm-up/events/melee-singles/brackets/104786
@mtimkovich
mtimkovich / RandomCapsLock.ahk
Last active April 30, 2020 21:04
Turn CAPS LOCK into CaPs LoCK.
Random, upper, 0, 1
ToggleCase(c) {
global upper := !upper
if upper {
StringUpper, c, c
} else {
StringLower, c, c
}
@mtimkovich
mtimkovich / netplay.rs
Last active February 10, 2020 18:58
fake netplay codes
use rand::Rng;
fn main() {
let netplay: String = (0..8)
.map(|_| format!("{:x?}", rand::thread_rng().gen_range(0, 16)))
.collect();
println!("{}", netplay);
}
@mtimkovich
mtimkovich / .tmux.conf
Last active February 10, 2020 18:58
.tmux.conf
# upgrade $TERM
set -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# Status bar styling and content.
@mtimkovich
mtimkovich / dive.sh
Created March 6, 2019 00:59
Quickly dive into Java directories
dive() {
start=$PWD
if [ -z "$1" ] || [ ! -d "$1" ]; then
return 1
fi
cd "$1"
while [ true ]; do
@mtimkovich
mtimkovich / gif_animatedtexture.py
Created February 28, 2019 23:27
Break a GIF into its PNG frames and create a AnimatedTexture .tres for them.
import argparse
import os
from PIL import Image
parser = argparse.ArgumentParser(
description='Convert GIF into frames and then create '
'AnimatedTexture .tres')
parser.add_argument('gif', help='GIF to process')
args = parser.parse_args()
@mtimkovich
mtimkovich / netplay.js
Last active October 8, 2019 00:30
fake netplay codes
const netplay = Array(8).fill().map(() =>
Math.floor(Math.random() * 16).toString(16)
).join('');
console.log(netplay);
@mtimkovich
mtimkovich / split.py
Created February 21, 2019 01:54
Split
#!/usr/bin/env python
import fileinput
for line in fileinput.input():
print(line.split())