This file contains 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
if ( typeof Object.getPrototypeOf !== "function" ) { | |
( function ( ) { | |
function getPrototypeValue( o, p ) { | |
if ( o.hasOwnProperty( p ) ) { | |
var ownValue = o[ p ]; | |
if ( delete o[ p ] ) { | |
var prototypeValue = o[ p ]; | |
o[ p ] = ownValue; | |
return prototypeValue; | |
} else { |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
#!/usr/bin/env sh | |
# subgit | |
# | |
# A tiny wrapper around git to help you manage | |
# Git sub-projects easily, safely, and simply. | |
# | |
# Created by Rusty Klophaus (@rklophaus) | |
# | |
# See http://rklophaus.com/subgit for usage. |
This file contains 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 FakeArray = ( function ( ) { | |
function FakeArray( ) { | |
var fakeArray = Object.create( FakeArray.prototype ); | |
var realArray = Array.apply( Object.create( Array.prototype ), arguments ); | |
Object.defineProperty( fakeArray, '', { | |
value: realArray | |
} ); | |
forwardIndexesUntil( realArray.length ); | |
return fakeArray; | |
} |
This file contains 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
// ==UserScript== | |
// @match http://www.jshint.com/ | |
// ==/UserScript== | |
( function ( ) { | |
'use strict'; | |
var slice = [ ].slice; | |
var checkboxesByIndex = slice.call( document.getElementsByClassName( 'options' ) ).map( function ( node ) { | |
return node.getElementsByTagName( 'input' ); | |
} ).reduce( function ( nodeList1, nodeList2 ) { |