http://ln.hixie.ch/?start=1037910467&count=1
http://ln.hixie.ch/?start=1137740632&count=1
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| OAuth = require('oauth').OAuth | |
| _ = require 'underscore' | |
| class LinkedInClient | |
| @baseUrl: 'https://api.linkedin.com' | |
| @requestTokenUrl: "#{@baseUrl}/uas/oauth/requestToken" | |
| @accessTokenUrl: "#{@baseUrl}/uas/oauth/accessToken" | |
| @authorizeUrl: "#{@baseUrl}/uas/oauth/authorize" | |
| @profileFields: ['id', 'headline', 'first-name', 'last-name', 'public-profile-url', 'picture-url', 'educations', 'positions', 'email-address'] |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>jQuery + CoffeeScript tutorial: animation stacking</title> | |
| <style> | |
| div.tree-frog {font-size: 12pt; border: 1px solid white; height: 38px; width: 38px; position: absolute} | |
| </style> | |
| <script src="coffee-script.js"></script> | |
| <script src="jquery-1.7.1.js"></script> | |
| </head> |
| <!-- | |
| see also: https://github.com/blueimp/jQuery-File-Upload/issues/473 | |
| This didn't work with an 'old' version of the plugin, try the latest one. | |
| Idea is to do file upload all programmatically, thus only sending files once user has confirmed what to do with the files. | |
| --> | |
| <div class="row"> | |
| <div class="span10"> |
| OAuth = require('oauth').OAuth | |
| _ = require 'underscore' | |
| class LinkedInClient | |
| @baseUrl: 'https://api.linkedin.com' | |
| @requestTokenUrl: "#{@baseUrl}/uas/oauth/requestToken" | |
| @accessTokenUrl: "#{@baseUrl}/uas/oauth/accessToken" | |
| @authorizeUrl: "#{@baseUrl}/uas/oauth/authorize" | |
| @profileFields: ['id', 'headline', 'first-name', 'last-name', 'public-profile-url', 'picture-url', 'educations', 'positions', 'email-address'] |
| // Created by STRd6 | |
| // MIT License | |
| // jquery.paste_image_reader.js | |
| (function($) { | |
| var defaults; | |
| $.event.fix = (function(originalFix) { | |
| return function(event) { | |
| event = originalFix.apply(this, arguments); | |
| if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0) { | |
| event.clipboardData = event.originalEvent.clipboardData; |
| (function(){ console.log( eval('this') ); }.call({a:1})) | |
| // Object {a: 1} | |
| (function(){ console.log( (0,eval)('this') ); }.call({a:1})) | |
| // Window {top: Window, window: Window, location: Location, external: Object, chrome: Object…} |
| // Let's assume we've got a situation where there's going to be a lot of | |
| // binding, eg. doSomethingWith(myThing.getProp.bind(myThing)); and we want | |
| // to simplify app code by reducing the number of times .bind(myThing) gets | |
| // called. | |
| var myThing = new Thing("Test"); | |
| myThing.getProp() // "Test" | |
| myThing.getProp.call(null) // "Test" | |
| myThing.setProp("Another Test"); |
| document.write = (function(write){ | |
| var override = function() { | |
| if(document.readyState !== "loading") { // document has finished loading - we want to intercept this call to document.write | |
| if (window.ueLogError) { | |
| try { | |
| throw new Error("`document.write` called after page load on the gateway."); | |
| } | |
| catch(e) { | |
| ueLogError(e, { logLevel : 'ERROR', attribution: 'gw-third-party-js' }); | |
| } |