I hereby claim:
- I am todd on github.
- I am todd (https://keybase.io/todd) on keybase.
- I have a public key whose fingerprint is BF41 F6FA F4EC 9E09 D940 0471 1549 098F 40CD 729D
To claim this, I am signing this object:
| """ | |
| This is an overly complicated method I threw together to do something I could have easily done by | |
| tallying on paper or something similar. That's not how I roll. | |
| The method below will calculate the numerical position of a spreadsheet column based on its alphabetic | |
| representation. I use a lot of VBA and Excel formulas at work that need this information to function | |
| properly and I got tired to counting these columns manually - a real chore when you start getting into | |
| columns represented by multiple characters. | |
| NOTE: Excel is kind of inconsistent with its numbering format. Depending on what you're trying to |
| # Edit: Changes inspired by comments from HN users jules and anthonyb | |
| import os | |
| for i in range(1,20): | |
| os.system("wget http://s3.amazonaws.com/bearwithclaws.baconfile.com/hackermonthly-issue%03d.zip" % i) |
| ''' | |
| This is a Shovel (https://github.com/seomoz/shovel) script | |
| that will create new Jekyll content and automatically | |
| generate the YAML Front Matter boilerplate. | |
| ''' | |
| import datetime | |
| import os.path | |
| import re | |
| import sys |
| install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz" | |
| install_package "ruby-2.0.0-preview1" "http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-preview1.tar.gz" |
| curl https://raw.github.com/gist/3998177/0ac991d732fbfba9f3d8cfd14b861461ef2d9393/2.0.0-preview1 > /tmp/2.0.0-preview1 | |
| rbenv install /tmp/2.0.0-preview1 |
| { | |
| "font_size": 12.0, | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "highlight_line": true, | |
| "translate_tabs_to_spaces": true, | |
| "trim_trailing_white_space_on_save": true, | |
| "scroll_past_end": true, | |
| "spell_check": true, | |
| "show_full_path": true |
| $("#multipage").parsley | |
| validators: | |
| state: (val)-> | |
| val.toUpperCase() in [ | |
| 'AK','AL','AR','AS','AZ','CA','CO','CT','DC','DE','FL','GA','GU','HI', | |
| 'IA','ID','IL','IN','KS','KY','LA','MA','MD','ME','MH','MI','MN','MO', | |
| 'MS','MT','NC','ND','NE','NH','NJ','NM','NV','NY','OH','OK','OR','PA', | |
| 'PR','PW','RI','SC','SD','TN','TX','UT','VA','VI','VT','WA','WI','WV', | |
| 'WY' | |
| ] |
| '.source.ruby': | |
| 'RSpec describe': | |
| 'prefix': 'describe' | |
| 'body': 'describe "${1:class_or_method}" do\n $0\nend' | |
| 'RSpec context': | |
| 'prefix': 'context' | |
| 'body': 'context "$1" do\n $0\nend' | |
| 'RSpec expect': |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| /* | |
| #cgo pkg-config: libmpdclient | |
| #include <stdlib.h> | |
| #include <mpd/client.h> | |
| */ | |
| import "C" |