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 / dddd
Created November 7, 2012 02:11
foo
ddsdfdfd
@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 / makecert.ps1
Created January 26, 2012 17:16 — forked from awithy/makecert.cmd
makecert
adsf
@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
# 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 / 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
@benjaminplee
benjaminplee / .bashrc
Created July 19, 2011 13:53
config files
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
alias ll="pwd; ls -lhaG"
alias lll="ll | less"
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alias scmtree="find . -print | grep -v "\.svn" | grep -v "\.git" | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alist gitbranchesbydate="for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset\" $k|head -n 1`\\t$k;done|sort -r"
@benjaminplee
benjaminplee / better_list_view.user.js
Created April 29, 2011 19:48
jira greenhopper kanban fix greasemonkey
// ==UserScript==
// @name Better List View
// @namespace http://asolutions.com
// @include https://jira.asolutions.com/secure/TaskBoard.jspa*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
// ==/UserScript==
$('.gh-issue-corner, .gh-issue-type, .item-name, .item-summary, .gh-breadcrumbs, .command-bar').hide();
$('.gh-issue, .gh-issue-inner').css('height', 'auto');
<marquee>§`1234567890-=[]\;',./~!@#$%^&*()_+{}|:"<>?éCONTENT<iframe title="YouTube video player" width="425" height="349" src="http://www.youtube.com/embed/sOUsbtUrXHk" frameborder="0" allowfullscreen></iframe>
@benjaminplee
benjaminplee / .gitconfig
Created November 29, 2010 15:14
sample .gitconfig
[user]
email = EMAILZ
name = Benjamin Lee
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
[color]
ui = auto