Skip to content

Instantly share code, notes, and snippets.

View christianrondeau's full-sized avatar

Christian Rondeau christianrondeau

View GitHub Profile
@dstj
dstj / compareResharperJsonTests.ahk
Last active December 21, 2015 18:19
This AutoHotKey script facilitates comparing Resharper tests results where one-liner JSON are compared by copy-pasting them, formatting them and comparing them in Notepad++ with the Compare plugin.
; Copy Paste Resharper tests one-liner JSON exptected vs actual output and compare them in Notepad++
; Use by first copying ALL test output in the clipboard, and then press CTRL-ALT-WIN-C
^#!c::
; Start Notepad++
ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "")
Run %ProgramFilesX86%\Notepad++\notepad++.exe -multiInst -nosession
WinWaitActive, new 1 - Notepad++, , 1
Send ^!d
Sleep, 100
; Paste in new document
@ryanflorence
ryanflorence / post-receive.rb
Created July 16, 2010 20:03
Ruby Git post-receive hook to parse out the stdin and assign them to variables
#!/usr/bin/env ruby
# figure out which repository this is
# assumes it's a bare repository
repository = /([^\/]*?)\.git$/.match(`pwd`.chomp)[1]
# get the stdins from git
stdins = []; stdins << $_ while gets
stdins.each do |str|