Skip to content

Instantly share code, notes, and snippets.

View MikeRuby's full-sized avatar

Michael Vallen MikeRuby

  • Acceleration Ventures
  • San Diego, CA
View GitHub Profile
// Modification from original http://twitter.com/javascripts/blogger.js
// Just a quick fix to clean up the code, make html validate, some ajax to add a loader in case Twitter is slow
// and then apear once it loads.
// It uses Scriptaculous
function twitterCallback2(twitters) {
var statusHTML = [];
for (var i=0; i<twitters.length; i++){
var username = twitters[i].user.screen_name;
var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, function(url) {
return '<a href="'+url+'">'+url+'</a>';
module ActionView
module Helpers
module AssetTagHelper
def favicon_link_tag(url_options = {}, tag_options = {})
href = url_options.is_a?(Hash) ?
url_for(url_options.merge(
:only_path => false)) : url_options
tag(
"link",
"rel" => tag_options[:rel] || nil,