Skip to content

Instantly share code, notes, and snippets.

View benjaminplee's full-sized avatar

Benjamin Lee benjaminplee

  • World Wide Technology
  • St. Louis, MO
View GitHub Profile
@benjaminplee
benjaminplee / piet.rb
Created November 20, 2011 19:09
Playing with Ruby for QuickPiet interpreter
#! /usr/bin/env ruby
class Recorder
def push amt
puts "push: #{amt}"
end
def add
puts "add"
end
# goes in $HOME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
function rmrf {
rm -Recurse -Force $Args
}
function clone_vimfiles {
Set-Location $HOME
rmrf _gvimrc
rmrf _vimrc
@benjaminplee
benjaminplee / mine_git.sh
Created December 19, 2011 14:39
git commit mining scripts
git log --shortstat --format=format:"%cd" --date=short --no-merges | sed -e '/^$/d;N;s/\n//;s/files changed, //;s/insertions(+), //;s/ deletions(-)//'
just delta info:
git log --shortstat --format=format:"" --no-merges --all | sed '/^$/d;s/[a-z()+,-]//g'
git log --format=format:"%cd" --date=short --no-merges --all | wc -l
num commits total
git log --format=format:"%cd" --date=short --no-merges --all | uniq -c
num commits for each day
@benjaminplee
benjaminplee / makecert.ps1
Created January 26, 2012 17:16 — forked from awithy/makecert.cmd
makecert
adsf
@benjaminplee
benjaminplee / final_values.json
Created February 29, 2012 22:50
fantasy baseball prices 2011
{ 'Hanley Ramírez': { tx_price: 57, keeper: false, final_price: 57 },
'Troy Tulowitzki': { tx_price: 56, keeper: false, final_price: 56 },
'Francisco Rodríguez': { tx_price: 1, keeper: false, final_price: 1 },
'Jonathan Broxton': { tx_price: 12, keeper: false, final_price: 12 },
'Justin Verlander': { tx_price: 45, keeper: false, final_price: 45 },
'Ryan Braun': { tx_price: 54, keeper: false, final_price: 54 },
'Derek Jeter': { tx_price: 33, keeper: false, final_price: 33 },
'CC Sabathia': { tx_price: 56, keeper: false, final_price: 56 },
'Jorge Posada': { tx_price: 1, keeper: false, final_price: 1 },
'Dan Uggla': { tx_price: 45, keeper: false, final_price: 45 },
@benjaminplee
benjaminplee / dddd
Created November 7, 2012 02:11
foo
ddsdfdfd