#LOL
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 alertTerminal(){ | |
console.log("\007"); | |
} |
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
{ | |
"owner":{ | |
"name": "George", | |
"job": "Developer", | |
"favoriteBurrito": "breakfast" | |
}, | |
"street": "123 Fake st.", | |
"city": "American Fork", | |
"state": "UT" | |
} |
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
{ | |
"owner":{ | |
"name": "George", | |
"job": "Developer", | |
"favoriteBurrito": "breakfast" | |
}, | |
"children": [ | |
{ | |
"name": "Sara", | |
"age" : 5, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- IF PEN IS PRIVATE --> | |
<!-- <meta name="robots" content="noindex"> --> | |
<!-- END --> |
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(fn){ | |
fn(fn); | |
}(function(fn){ | |
fn(fn) | |
})); |
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
//Finds all instances of #{} style interpolation like #{variable} | |
string.match(/#{[^}\r\n]*}/g); |
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 equi ( A ) { | |
var N = A.length; | |
for(var val in A){ | |
if(check(val, A)) | |
return val; | |
} | |
return false | |
} |
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 rice_chessboard ( A ) { | |
return checkPath(A[0][0], 0, 0, A) | |
} | |
function checkPath(val, x, y, board){ | |
if(board[x + 1] && board[x][y+1]){ //If there is room | |
var possibility1 = checkPath(val + board[x][y+1], x, (y+1), board); | |
var possibility2 = checkPath(val + board[x+1][y], (x+1), y, board); | |
return possibility1 > possibility2 ? possibility1 : possibility2; |
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 symmetryPoint ( S ) { | |
var length = S.length; | |
if(length === 1) | |
return 0; | |
if(length % 2 === 0) | |
return -1; | |
var midpoint = Math.floor(length / 2); | |
var fString = S.substring(0, midpoint); |