%a
: Short weekday, like ‘Mon’%A
: Long weekday, like ‘Monday’%d
: Two digit day of the month, 01 to 31%e
: Day of the month, 1 through 31%b
: Short month, like ‘Jan’%B
: Long month, like ‘January’%m
: Two digit month number, 01 through 12%y
: Two digits year, like 09 for 2009
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 calcFloor(input) { | |
var up = 0, | |
down = 0, | |
basement = 0, | |
i; | |
for(i=0; i<input.length; i++) { | |
input[i] === '(' ? up++ : down++; | |
if(!basement) { |
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 Anonymizr = { | |
people: [ | |
{ name: "Abradolf Linkler", username: "alinkler" }, | |
{ name: "Beatriz Viterbo", username: "bv1945" }, | |
{ name: "Charles Burns", username: "charlesb" }, | |
{ name: "Dr. Strangelove", username: "drstrnglv" }, | |
{ name: "Edward Meechum", username: "em_hoc" }, | |
{ name: "FN-2187", username: "fn2187" }, | |
{ name: "Gertie Barrimore", username: "gertie_b" }, | |
{ name: "Holden Caulfield", username: "hcaulfield" }, |
git config --global alias.rm-br '!git branch --merged master | grep -v '^\*\| master' | xargs -n 1 git branch -d'
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
background-color: grey; | |
} |
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
string.replace(/[ÁÉÓÚ]/g, 'Í').replace(/[áéóú]/g, 'í').replace(/[AEOU]/g, 'I').replace(/[aeou]/g, '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
string.replace(/[ÁÉÓÚ]/g, 'Í').replace(/[áéóú]/g, 'í').replace(/[AEOU]/g, 'I').replace(/[aeou]/g, '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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
</head> | |
<body> | |
<h1>Document upload!!</h1> |