I hereby claim:
- I am iangreenleaf on github.
- I am iangreenleaf (https://keybase.io/iangreenleaf) on keybase.
- I have a public key whose fingerprint is 3820 459D 1ADA C0D3 6F33 988E 0D31 6FB4 774E 9147
To claim this, I am signing this object:
| def with_var(variable, value, &block) | |
| old_value = eval variable | |
| eval "#{variable} = #{value.inspect}" | |
| ret = block.call | |
| eval "#{variable} = #{old_value.inspect}" | |
| ret | |
| end | |
| # Usage | |
| # ===== |
| module ABHelper | |
| def split_test(name) | |
| experiment = YAML.load_file("config/experiments.yml")[name] | |
| given_probability, num_with_probability = experiment[:variants].inject([0,0]) do |a,v| | |
| p, n = a | |
| if v.kind_of?(Hash) && v[:percent] | |
| [p + v[:percent], n + 1] | |
| else | |
| a |
| test: | |
| for f in test-*.coffee; do coffee "$$f"; done | |
| .PHONY: test |
| Here are the version numbers available for Handlebars.js | |
| +--------------+------------------+------------------+--------------+ | |
| | npm versions | Official website | GitHub downloads | Git tags | | |
| +--------------+------------------+------------------+--------------+ | |
| | 1.0.2beta | 1.0.0-rc.3 | 0.9.0.pre.2 | 0.9.0.pre.4 | | |
| | 1.0.4beta | | 0.9.0.pre.3 | 1.0.0.beta.1 | | |
| | 1.0.5beta | | 0.9.0.pre.4 | 1.0.0-rc.3 | | |
| | 1.0.6 | | 0.9.0.pre.5 | 1.0.rc.1 | | |
| | 1.0.6-2 | | 0.9.0.pre.js | 1.0.rc.2 | |
| export target=my_dir | |
| git remote add "$target" file:////path/to/original/repo | |
| git fetch "$target" | |
| git co -b "$target" "$target/master" | |
| # Probably breaks on whitespace, sorry dawg. | |
| git filter-branch -f --tree-filter "mkdir -p \"$target\"; git ls-tree \$GIT_COMMIT --name-only | xargs --no-run-if-empty mv -t $target" "$target" | |
| git co master | |
| git merge "$target" | |
| git remote remove "$target" | |
| git br -d "$target" |
I hereby claim:
To claim this, I am signing this object:
| ack -f --print0 | xargs -0 -n1 vim +wq |
| # | |
| #= dump database to yaml for fixtures | |
| # | |
| # originated by elm200 <http://d.hatena.ne.jp/elm200/20070928/1190947947> | |
| # | |
| #== install | |
| # | |
| # move this file to RAILS_ROOT/lib/tasks/extract_fixtures.rake | |
| # | |
| namespace :db do |
| <ruleset name="Grinnellplans.com"> | |
| <target host="grinnellplans.com" /> | |
| <target host="www.grinnellplans.com" /> | |
| <rule from="^http:" to="https:" /> | |
| </ruleset> |