Skip to content

Instantly share code, notes, and snippets.

@mtimkovich
mtimkovich / font_letter_check.txt
Created Apr 6, 2021 — forked from marcospedreiro/font_letter_check.txt
/u/martinus test pattern to check how distingushable characters are for a font
View font_letter_check.txt
From: https://www.reddit.com/r/programming/comments/8jjq33/11_best_programming_fonts/dz0xxs5/
------
o0O s5S z2Z !|l1Iij {([|})] .,;: ``''""
a@#* vVuUwW <>;^°=-~ öÖüÜäÄßµ \/\/
the quick brown fox jumps over the lazy dog
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
0123456789 &-+@ for (int i=0; i<j; ++i) { }
@mtimkovich
mtimkovich / MuteMic.ahk
Last active Mar 24, 2021
Keyboard shortcut to mute the mic.
View MuteMic.ahk
; https://www.autohotkey.com/docs/commands/SoundSet.htm#Ex
F13::
MIC_ID = 7
SoundSet, +1, MASTER, mute, %MIC_ID%
SoundGet, master_mute, , mute, %MIC_ID%
Msg := "Microphone online"
Action := "Insert"
@mtimkovich
mtimkovich / ping_test.py
Created Jan 12, 2021
Test if our ping is good enough to play Rocket League
View ping_test.py
import platform
import re
import subprocess
from statistics import mean
def pings(*, url='google.com', count=10):
if platform.system() == 'Windows':
flag = '-n'
else:
flag = '-c'
@mtimkovich
mtimkovich / im_uninstalling.ps1
Created Dec 27, 2020
Script to uninstall Rocket League
View im_uninstalling.ps1
$rl = Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 252950"
$uninstall = $rl.UninstallString.Replace('"', '')
Invoke-Expression $uninstall
@mtimkovich
mtimkovich / chess960.py
Last active Dec 9, 2020
Chess960 Initial Position Generator (Python)
View chess960.py
#!/usr/bin/env python
import random
def empty(lst):
return [i for i, value in enumerate(lst) if value == 0]
board = [0] * 8
# Bishops
for i in range(2):
@mtimkovich
mtimkovich / take_n_percent_off_there
Created Nov 27, 2020
Compute "% off" calculations
View take_n_percent_off_there
import sys
import ply.lex as lex
import ply.yacc as yacc
tokens = ['NUMBER', 'MINUS', 'PERCENT']
t_ignore = ' \t'
t_MINUS = r'-'
t_PERCENT = r'%'
View config.fish
var PATH $PATH ~bin
function fish_prompt
echo -n $USER@(hostname) ''
set_color $fish_color_cwd
prompt_dir
set_color normal
echo -n ' $ '
end
@mtimkovich
mtimkovich / gif_animatedtexture.py
Created Feb 28, 2019
Break a GIF into its PNG frames and create a AnimatedTexture .tres for them.
View gif_animatedtexture.py
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 / fzcl.clj
Last active Jul 13, 2020
Fuzzy Clock in Clojure
View fzcl.clj
(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
Tournaments on GarPR from 2020
View garpr_norcal2020.txt
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