Skip to content

Instantly share code, notes, and snippets.

View vnorby's full-sized avatar

Vibhu Norby vnorby

  • Mountain View, California
View GitHub Profile
@vnorby
vnorby / gist:4116565
Created November 20, 2012 07:25
Bookmarklet to show Paul Graham's essay footnotes inline on hover
javascript:(function(e,t,n,r,i,s,o,u){if(!(i=e.jQuery)||n>i.fn.jquery||r(i)){s=t.createElement("script");s.type="text/javascript";s.src="http://ajax.googleapis.com/ajax/libs/jquery/"+n+"/jquery.min.js";s.onload=s.onreadystatechange=function(){if(!o&&(!(u=this.readyState)||u=="loaded"||u=="complete")){r((i=e.jQuery).noConflict(1),o=1);i(s).remove()}};t.documentElement.childNodes[0].appendChild(s)}})(window,document,"1.8.3",function(e,t){var n=e("font[color]").filter(function(){if(parseInt(e(this).text(),10)>0){return true}return false}).parent();var r=e("body").html();n.each(function(){var t=e(this).attr("href").replace("#","");var n=parseInt(t.replace("f",""),10);var i=new RegExp('<a name="'+t+'">([^]*?)[[]');var s=r.match(i);if(s&&s[0]){var o=e(s[0].replace("<br>","\n")).text().replace(n+"]","");o=o.replace("csell_env = 'mud';","").replace("// Begin Y! Store Generated Code","");var u=e('<div class="note" style="background:#FFFFFF;border:3px solid #000;left:0px;top:15px;width:300px;position:absolute;padding:1
Processing GroupMessagesController#create to html (for 192.168.10.1 at 2010-08-11 11:28:53) [POST]
Parameters: {"group_id"=>"1", "message"=>{"body"=>"", "attachment"=>#<File:/tmp/RackMultipart20100811-2474-1eejv7o-0>}}
Group Columns (1.0ms) SHOW FIELDS FROM `groups`
Group Load (0.2ms) SELECT * FROM `groups` WHERE (`groups`.`id` = 1) 
Message Columns (0.7ms) SHOW FIELDS FROM `messages`
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20100811-2474-f4vos8-0 is not recognized by the 'identify' command.>
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20100811-2474-f4vos8-0 is not recognized by the 'identify' command.>
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20100811-2474-f4vos8-0 is not recognized by the 'identify' command.>
[paperclip] An error wa
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tattle.com</title>
</head>
<style>
textarea {
width: 100%;
height: 700px;