I hereby claim:
- I am taq on github.
- I am taq (https://keybase.io/taq) on keybase.
- I have a public key whose fingerprint is 840B 7492 E475 8DB6 B5DE 81D0 6611 4C70 E7F6 C0C0
To claim this, I am signing this object:
| Just insert on .gitconfig: | |
| nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
| And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
| $ git nbr test | |
| Total 0 (delta 0), reused 0 (delta 0) | |
| To <your remote here> | |
| * [new branch] work -> test |
| require "minitest/autorun" | |
| require "minitest/spec" | |
| require "spreadsheet" | |
| describe 'spreadsheet' do | |
| def self.before_all | |
| @doc ||= Spreadsheet.open "spreadsheet.xls" | |
| end | |
| before do |
| require "minitest/autorun" | |
| require "minitest/spec" | |
| require "spreadsheet" | |
| describe 'spreadsheet' do | |
| before do | |
| @doc ||= Spreadsheet.open "spreadsheet.xls" | |
| puts "document object id: #{@doc.object_id}" | |
| end |
I hereby claim:
To claim this, I am signing this object:
| class FooBar | |
| def foo | |
| "I'm in foo!" | |
| end | |
| def bar(foo = foo) | |
| puts foo | |
| end | |
| end |
| ag.vim | |
| bufexplorer | |
| camelcasemotion | |
| ctrlp.vim | |
| emmet-vim | |
| L9 | |
| limelight.vim | |
| nerdcommenter | |
| nerdtree | |
| syntastic |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nginx | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the nginx web server | |
| # Description: starts nginx using start-stop-daemon |
| ack.vim | |
| bufexplorer | |
| camelcasemotion | |
| csv.vim | |
| ctrlp.vim | |
| emmet-vim | |
| L9 | |
| nerdcommenter | |
| nerdtree | |
| syntastic |
| module TimeExtensions | |
| refine Fixnum do | |
| def min2sec; self * 60; end | |
| end | |
| end | |
| class Minutes | |
| using TimeExtensions | |
| def self.to_sec(min) |
| # Use it like `export PS1="\h:\w[\$(ahead_behind)]$"` | |
| function ahead_behind { | |
| curr_branch=$(git rev-parse --abbrev-ref HEAD); | |
| curr_remote=$(git config branch.$curr_branch.remote); | |
| curr_merge_branch=$(git config branch.$curr_branch.merge | cut -d / -f 3); | |
| git rev-list --left-right --count $curr_branch...$curr_remote/$curr_merge_branch | tr -s '\t' '|'; | |
| } |