This file contains hidden or 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
    
  
  
    
  | javascript:(function(e,t){var n=e.document;setTimeout(function(){function a(e){if(e.data==="destroy_bookmarklet"){var r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var t="DELI_bookmarklet_iframe",r=n.getElementById(t);if(r){return}var i="https://delicious.com/save?source=bookmarklet&",s=n.createElement("iframe");s.id=t;s.src=i+"url="+encodeURIComponent(e.location.href)+"&title="+encodeURIComponent(n.title)+"¬e="+encodeURIComponent(""+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+"&v=1.1";s.style.position="fixed";s.style.top="0";s.style.left="0";s.style.height="100%25";s.style.width="100%25";s.style.zIndex="16777270";s.style.border="none";s.style.visibility="hidden";s.onload=function(){this.style.visibility="visible"};n.body.appendChild(s);var o=e.addEventListener?"addEventListener":"attachEvent";var u=o=="attachEvent"?"onmessage":"message";e[o](u,a,false)},1)})(window) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | scrollNotifier = do -> | |
| TIMEOUTINTERVAL = 50 | |
| scrollTimer = null | |
| returnable = {} | |
| callbacks = [] | |
| bound = false | |
| mainCallback = -> | |
| clearTimeout(scrollTimer) | |
| scrollTimer = setTimeout( -> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | anims = [] | |
| class Slide | |
| constructor: (@snap, @play, @reset, @animatables = []) -> | |
| @snap = Snap.select @snap | |
| addImage: (path, etc...) -> | |
| e = @snap.image retinizePath(path), etc... | |
| @animatables.push e | |
| return e | 
  
    
      This file contains hidden or 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
    
  
  
    
  | retinizePath = (path) -> | |
| path_split = path.split(".") | |
| prefix = path_split[0..-2].join(".") | |
| suffix = path_split[path_split.length - 1] | |
| if window.devicePixelRatio > 1 | |
| return [prefix, suffix].join("@2x.") | |
| else | |
| return [prefix, suffix].join(".") | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var dict = ["a", "s", "d", "f"] | |
| itoa = function (n) { | |
| retstr = "" | |
| while (n !== 0) { | |
| digit = dict[(n % (dict.length + 1)) - 1] | |
| retstr = digit + retstr | |
| n = Math.floor(n / dict.length) | 
  
    
      This file contains hidden or 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://github.com/ttezel/twit | |
| T.post('statuses/update', { status: 'hello world!' }, function(err, reply) { | |
| // ... | |
| }) | |
| // Question: how can I put this into a function such that the function returns reply? | |
| // I tried: | 
  
    
      This file contains hidden or 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://github.com/ttezel/twit | |
| T.post('statuses/update', { status: 'hello world!' }, function(err, reply) { | |
| // ... | |
| }) | |
| function TWEET(username, count,){ | |
| var returnReply; | |
| T.get('statuses/home_timeline', { count: count, screen_name: username, trim_user: true, exclude_replies: true }, function (err, reply) { | |
| returnReply = reply; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | db = require "../lib/db" | |
| Q = require "q" | |
| _ = require "lodash" | |
| GROUP = "messages" | |
| class Message | |
| constructor: (obj) -> | |
| # Assign all properties of the object to this. | |
| _.extend(this, obj) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Remember, this is wrong! | |
| describe 'A simple Angular app testing suite', -> | |
| it "should load a module from an app, and mock the module's dependency.", -> | |
| module 'NameOfApp', ($provide) -> | |
| $provide.value 'bar', | |
| baz: -> true | |
| inject 'foo', (foo) -> | |
| expect(foo).not.toBe(null) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Remember, this is wrong! | |
| describe 'A simple Angular app testing suite', -> | |
| it "should load a module from an app, and mock the module's dependency.", -> | |
| module 'NameOfApp', ($provide) -> | |
| $provide.value 'bar', | |
| baz: -> true | |
| return null | |
| inject 'foo', (foo) -> | 
