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
//here's a cleaner version. same functionality | |
//just easier to change since the regex is at the beginning of the code. | |
//help from /u/BBQCalculator | |
//http://www.regexper.com/ | |
//http://regexpal.com/ | |
//modfied from a lot of others | |
//moved regex to top for simple pasting if it needs to change | |
var REGEX = /^((up|down|left|right|a|b|start|select|anarchy|democracy)\d*)+$/i; |
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
//selects all links in delicious page with link rank <= var for deletion | |
var minimumLinkRank = 10; | |
clearInterval(scroll); | |
var scroll = window.setInterval(function() { | |
window.scrollTo(0,document.body.scrollHeight); | |
}, 5000); | |
var feedList = document.querySelector('.link-list'); | |
var historyLength = feedList.children.length; |
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
#NoEnv | |
#singleInstance, Force | |
#InstallKeybdHook | |
#MaxThreadsPerHotkey, 2 | |
#Persistent | |
#UseHook | |
SendMode Input | |
CoordMode,ToolTip,Screen | |
SetBatchLines, -1 |
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
Show hidden characters
{ | |
"disallowSpacesInFunctionDeclaration": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowSpacesInNamedFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"requireSpacesInAnonymousFunctionExpression": { | |
"beforeOpeningRoundBrace": true, | |
"beforeOpeningCurlyBrace": true |
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
@param | |
!Array.<string>= | |
!string | |
(object)= | |
(Object|Array)= | |
(Object|function(Object))= | |
* | |
...(Function) | |
...Object |
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
(function() { | |
var body = $("body"); | |
var dir = body.css("direction"); | |
if (dir === "") { | |
body.css("direction", "rtl"); | |
body.toggleClass('rtl'); | |
} else if (dir === "ltr") { | |
body.css("direction", "rtl"); | |
} else { | |
body.css("direction", "ltr"); |
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
// Flow Type Examples | |
// https://github.com/babel/babel/blob/65a44a1e131c8bc336b218991bae7548176de283/src/babel/types/alias-keys.json#L79-L110 | |
// https://github.com/babel/babel/blob/088846a3479375a51d71084cb4fd70ef8fa21d29/src/babel/generation/generators/flow.js | |
/// Primitives | |
// AnyTypeAnnotation | |
var x : any; | |
// BooleanTypeAnnotation | |
var x : bool; |
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
// part of t.VISITOR_KEYS; | |
var visitorKeysMap = { | |
// Others | |
"ArrayPattern": ["elements", "typeAnnotation"], | |
"ClassDeclaration": ["id", "body", "superClass", "typeParameters", "superTypeParameters", "implements", "decorators"], | |
"ClassExpression": ["id", "body", "superClass", "typeParameters", "superTypeParameters", "implements", "decorators"], | |
"FunctionDeclaration": ["id", "params", "body", "returnType", "typeParameters"], | |
"FunctionExpression": ["id", "params", "body", "returnType", "typeParameters"], | |
"Identifier": ["typeAnnotation"], | |
"ObjectPattern": ["properties", "typeAnnotation"], |
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 headings = { | |
"gen":["The Creation of the World","The Seventh Day, God Rests<br />The Creation of Man and Woman","The Fall","Cain and Abel","Adam's Descendants to Noah","Increasing Corruption on Earth<br />Noah and the Flood","Noah and the Flood (cont.)","The Flood Subsides<br />God's Covenant with Noah","God's Covenant with Noah (cont.)<br />Noah's Descendants","Nations Descended from Noah","The Tower of Babel<br />Shem's Descendants<br />Terah's Descendants","The Call of Abram<br />Abram and Sarai in Egypt","Abram and Lot Separate","Abram Rescues Lot<br />Abram Blessed by Melchizedek","God's Covenant with Abram","Sarai and Hagar","Abraham and the Covenant of Circumcision<br />Isaac's Birth Promised","Isaac's Birth Promised (cont.)<br />Abraham Intercedes for Sodom","God Rescues Lot<br />God Destroys Sodom<br />Lot and His Daughters","Abraham and Abimelech","The Birth of Isaac<br />God Protects Hagar and Ishmael<br />A Treaty with Abimelech","The Sacrifice of Isaac","Sarah's Death and Burial","Isaac and R |
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
3846 passing (5s) | |
88 failing | |
1) brace-style with (foo) { | |
bar(); | |
}: | |
AssertionError: Should have no errors but had 1: [ { fatal: true, | |
severity: 2, | |
message: '\'with\' in strict mode', | |
line: 1, |
OlderNewer