Wherever your aliases are stored, you can do this:
alias this="git rev-parse --abbrev-ref HEAD"
Then you can type:
git push origin `this`
require 'pry' | |
require 'net/http' | |
#require 'rexml/document' | |
#include REXML | |
class SamlSend | |
def initialize | |
end |
# So say you want to deal with a tree structure in ruby | |
tree_data = [ | |
{ name: 'root', childen: [ | |
{ name: 'first' }, | |
{ name: 'second' } | |
] | |
] | |
# That pretty much covers it. I would expect you'd want it to be wrapped in some kind of helper class |
Wherever your aliases are stored, you can do this:
alias this="git rev-parse --abbrev-ref HEAD"
Then you can type:
git push origin `this`
ThreadError: can't create Thread (11) | |
from /usr/local/lib/ruby/1.9.1/timeout.rb:49:in `start' | |
from /usr/local/lib/ruby/1.9.1/timeout.rb:49:in `timeout' | |
from /app/examples/twitter_video_extractor.rb:90:in `execute' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize' |
LocalJumpError: no block given (yield) | |
/app/examples/twitter_video_extractor.rb:97:in `execute' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize' |
$ blender | |
Traceback (most recent call last): | |
File "/usr/lib/blender/scripts/addons/io_curve_svg/__init__.py", line 58, in execute | |
from . import import_svg | |
ValueError: level must be >= 0 | |
location:<unknown location>:-1 | |
location:<unknown location>:-1 |
$ -> | |
$.get '/lol/get_data', (data) -> | |
load_chart = new Highcharts.Chart | |
chart: | |
renderTo: 'graph' | |
defaultSeriesType: 'line' | |
title: | |
text: 'Per Diem' | |
xAxis: | |
title: 'Time' |
#<ProbablyWorthWatching::Tweet:0x0000000e810598 @author="", @content="heisenmink: Congratulations! http://www.youtube.com/watch?v=gsEcac4jsQY | 14919"> | |
title: The Arsonists - The Session | |
description: The Arsonist, a collection of Brooklyn MC's: Q-Unique,Dstroy, Swel Boogie, Jise One and Freestyle formed in 93. | |
Mixed by Babu from the Beat Junkies | |
enjoy! | |
url: http://www.youtube.com/v/gsEcac4jsQY&feature=youtube_gdata_player | |
---------- | |
#<ProbablyWorthWatching::Tweet:0x0000000eed62b0 @author="", @content="http://www.youtube.com/watch?feature=player_detailpage&v=FkLVl3gpJP4#t=4501s |
---------------------------- | |
#<ProbablyWorthWatching::Tweet:0x00000004cfbf30 @author="kanzure_", @content="http://www.youtube.com/watch?v=3N0kWzC6jmE&feature=related Lecture - 2 Architecture of Industrial Automation Systems"> | |
title: Lecture - 2 Architecture of Industrial Automation Systems | |
description: Lecture Series on Industrial Automation and Control by Prof. S. Mukhopadhyay, Department of Electrical Engineering, IIT Kharagpur. For more Courses visit http://nptel.iitm.ac.in | |
url: http://www.youtube.com/v/3N0kWzC6jmE&feature=youtube_gdata_player | |
---------- | |
#<ProbablyWorthWatching::Tweet:0x00000004d026a0 @author="kanzure_", @content="http://www.youtube.com/watch?v=PirH8PADDgQ the ad"> | |
title: Koyaanisqatsi (trailer) | |
description: Trailer do filme Koyaanisqatsi |
--(jadams@timely)-(40/pts/3)-(1126/02-Feb-13)-- | |
--($:~/ruby/probably_worth_watching)(master)ruby-1.9.3-p362@probably_worth_watching-- | |
$ ruby examples/ruby_video_extractor.rb | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001aae938 @author="JEG2", @content="This description of IRC is epic: http://t.co/L6V578Gj">http://t.co/L6V578Gj | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001ab4f40 @author="JEG2", @content="RT @thomweerd: 1Password is currently on sale for 50% off. – https://t.co/zsh0562L">https://t.co/zsh0562L | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001ab4158 @author="JEG2", @content="@avdi I use this and it's AMAZING: http://t.co/RaiEqEIo">http://t.co/RaiEqEIo | |
Got past FindsLinksFilter |