Skip to content

Instantly share code, notes, and snippets.

@aaronklaassen
aaronklaassen / pre-commit
Last active April 22, 2019 16:51
But you told me you'd never forget!
#!/usr/bin/env ruby
status = `git status -s`
ignore = ["db/schema.rb"]
check = status.split("\n")
.select { |line| ["A", "M"].include?(line[0..1].strip) }
.select { |line| line[-3..-1] == ".rb" }
.map { |line| line[3..-1] }
check -= ignore
@aaronklaassen
aaronklaassen / test.ahk.template
Created November 3, 2018 15:14
simplified ahk template
; DEFAULT RUN SCRIPT
#Persistent
#MaxHotkeysPerInterval 200
#SingleInstance Force
debug := {DEBUG_OUTPUT}
executable := "{GAME_PATH}"
SplitPath, executable , , game_dir
@aaronklaassen
aaronklaassen / keys.txt
Created September 7, 2017 01:39
Valid Winnitron keys
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
@aaronklaassen
aaronklaassen / key_translation.json
Created August 15, 2017 19:47
winnitron key translation
{
"meta": {
"source": "url"
},
"keys": [
{
"name": "Numpad0",
"ahk": "Numpad0",
"keycode": 96,
"unity": "Keypad0"
; DEFAULT RUN SCRIPT
#Persistent
#MaxHotkeysPerInterval 200
#SingleInstance Force
debug := true
executable := "C:\Users\aaron\source\Nidhogg\Nidhogg.exe"
forceQuitHoldTime := 3000
@aaronklaassen
aaronklaassen / roa_2016.md
Last active February 26, 2017 04:24
Ruby on Ales 2016

OKAY FOLKS GET HYPE the conf talk videos from Ruby on Ales are just going up and I have opinions.

🍻🍻🍻

For the curious

Honestly they were all good; no real duds. But I have a few highlights/recommendations. I know most of you aren't writing Ruby, but honestly I don't think it really matters. In particular my favorite talks here aren't even really very Ruby-specific; the code examples are, of course, but those are just examples. The content is obviously generalizable.