This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sudoku | |
attr_accessor :board | |
Possibilities = (1..9).to_a | |
def initialize(board_in = nil) | |
self.board = [] | |
9.times do # rows | |
row = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/' | |
} | |
function count_git_changes { | |
git ls-files -m -o -d --exclude-standard 2> /dev/null | grep \w* -c | sed -e 's/\([0-9]*\)/ \1/g' -e '/^ 0/d' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists('g:loaded_pathogen') | |
call pathogen#runtime_prepend_subdirectories(expand('~/.vim/bundles')) | |
end | |
syntax on | |
filetype plugin indent on | |
augroup vimrc | |
autocmd GuiEnter * set guioptions-=T columns=150 lines=70 | |
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[user] | |
name = Ben Wyrosdick | |
email = [email protected] | |
[alias] | |
st = status | |
co = checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#grep_edit some_pattern [some_path] | |
# | |
#the path is optional ... for help with git grep command type: | |
#git help grep | |
git grep $1 $2 | cut -f1 -d: | uniq | xargs mvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config = URI.parse(ENV['MONGO_URL'] || 'mongodb://localhost:27017/thedb') | |
MongoMapper.connection = Mongo::Connection.new(config.host, config.port) | |
MongoMapper.database = config.path.gsub(/^\//, '') | |
MongoMapper.database.authenticate(config.user, config.password) if config.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# download isightcapture at link below | |
# http://www.intergalactic.de/pages/iSight_files/isightcapture1_1.dmg | |
isightcapture -t png /tmp/capture.png | |
curl -u user:pass -H 'Expect:' -F image=@'/tmp/capture.png;type=image/png' http://api.twitter.com/1/account/update_profile_image.xml > /dev/null | |
echo "Profile Pic Updated" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set leftArrow to 123 | |
set rightArrow to 124 | |
set upArrow to 126 | |
set downArrow to 125 | |
set halfScreen to {control down, option down, command down} | |
set quarterScreen to {shift down, control down, option down} | |
tell application "Finder" to set screenSize to bounds of window of desktop | |
set width to item 3 of screenSize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Ingress Map Analyser -- | |
Portals: 215 | |
Links: 628 | |
0. "Leon" | |
0.0 Central Park Japanese Garden | |
0.1 For All the People | |
0.2 Graffiti Mural | |
0.3 Japanese Garden Ancient Tower Statue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Ingress Map Analyser -- | |
Portals: 384 | |
Links: 1136 | |
0. 3536 Shelby Fountain | |
0.0 Concord Baptist Church | |
0.1 North Shelby Fountain | |
0.2 Shelby Fountain | |
0.3 Zapopan Authentic Mexican |
OlderNewer