Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View garyharan's full-sized avatar
🎯
Focusing

Gary Haran garyharan

🎯
Focusing
View GitHub Profile
@garyharan
garyharan / install_ruby_debug_1.9.3.sh
Created March 15, 2012 23:23
Installing ruby-debug with ruby 1.9.3
# After installing ruby-debug19, run this file.
#
# References:
# http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
# http://stackoverflow.com/questions/8087610/ruby-debug-with-ruby-1-9-3
echo "Installing ruby-debug with $MY_RUBY_HOME ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
// https://cheeaun.talkerapp.com/plugins/82
// jQuery.nano template engine
// http://github.com/trix/nano
(function(c){c.nano=function(d,e){return d.replace(/\{([\w\.]*)}/g,function(a,f){a=f.split(".");var b=e[a.shift()];c.each(a,function(){b=b[this]});return b})}})(jQuery);
var vendorStyles = function(str){
var s = str.split('-');
if (s.length == 4 && s[0] == 'border'){
var value = s[3].split(':')[1];
plugin.onMessageInsertion = function(event){
// regex is probably wrong
var github_status_expression = /https*:\/\/github.com\/(.*)\/(.*)/i;
var last_anchor = Talker.getLastInsertion().find('a');
var last_href = last_anchor.attr('href') || '';
if (github_status_expression.test(last_href)){
var author = last_href.match(github_status_expression)[1];