This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |