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
    
  
  
    
  | // whilst in firebug, try: | |
| var console = {}; // or, well - anything actually... | 
  
    
      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
    
  
  
    
  | // note the number to the left of the 'e', 7 and 8 respectively | |
| alert( 1.7976931348623157e+308 === 1.7976931348623158e+308 ); // true! | 
  
    
      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 _width = $.fn.width; | |
| $.fn.width = function () { | |
| debbugger; // triggers a break point | |
| _width.apply(this, arguments); // continue with execution | |
| }; | 
  
    
      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(){var b=document.createElement("form");b.action="http://jsbin.com";b.method="post";var a=document.createElement("input");a.type="hidden";a.value="<!DOCTYPE html><html>"+document.documentElement.innerHTML+"</html>";a.name="html";b.appendChild(a);a=document.createElement("input");a.type="hidden";a.value="true";a.name="inject";b.appendChild(a);b.submit()})(); | 
  
    
      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
    
  
  
    
  | // Google closure compiler 1000 to 1E3 - love it! | |
| 1000 === 1E3; // true | 
  
    
      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
    
  
  
    
  | (function(window, document, undefined) { | |
| // Enable all HTML5 elements in IE. For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/ | |
| /*@cc_on'abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})@*/ | |
| if (![].forEach) { | |
| Array.prototype.forEach = function (fn) { | |
| var len = this.length || 0, that = arguments[1]; | |
| if (typeof fn == 'function') { | |
| for (var i = 0; i < len; i++) { | 
  
    
      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
    
  
  
    
  | // bookmarklet to introspect the source of current page | |
| javascript:(function(d,h){h=d.documentElement.innerHTML;d.open();d.write('<pre>'+('<!DOCTYPE html><html>'+h+'</html>').replace(/[<>]/g,function(m){return{'<':'<','>':'>'}[m]})+'</pre>')})(document); | 
  
    
      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
    
  
  
    
  | /** | |
| * Add this script to the end of your document that use <input autofocus type="text" /> | |
| * or <input type="text" placeholder="username" /> and it'll plug support for browser | |
| * without these attributes | |
| * Minified version at the bottom | |
| */ | |
| (function () { | |
| function each(list, fn) { | |
| var l = list.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
    
  
  
    
  | function shuffle(array) { | |
| var newArray = [], i; | |
| while (array.length) { | |
| i = ~~(Math.random() * array.length); | |
| newArray.push(array[i]); | |
| array = array.slice(0, i).concat( array.slice(i+1) ); | |
| } | |
| return newArray; | |
| } | 
  
    
      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
    
  
  
    
  | // pure JS | |
| function shuffle(array) { | |
| return array.sort(function(){ | |
| return .5 - Math.random(); | |
| }); | |
| } | |
| // with Prototype.js you can do | |
| function shuffle(array){ | |
| return array.sortBy(Math.random); |