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 startTimer(duration, display) { | |
var timer = duration, minutes, seconds; | |
setInterval(function () { | |
minutes = parseInt(timer / 60, 10); | |
seconds = parseInt(timer % 60, 10); | |
minutes = minutes < 10 ? "0" + minutes : minutes; | |
seconds = seconds < 10 ? "0" + seconds : seconds; | |
display.textContent = minutes + ":" + seconds; |
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 decipherThis(str) { | |
const alphabet = ['a', 'b', 'c', 'd','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] | |
const index = alphabet.reduce((acc, letter) => { | |
const uppercase = letter.toUpperCase() | |
acc[letter.charCodeAt(0)] = letter | |
acc[uppercase.charCodeAt(0)] = uppercase | |
return acc | |
}, {}) |
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
{ | |
"data":[ | |
{ | |
"AccountRef.value":"5471034769597 - Elevated Equipment", | |
"Contact.Address.AddressLine1.value":"2645 Vistamont way", | |
"Contact.Address.AddressLine2.value":"NaN", | |
"Contact.Address.City.value":"Chico", | |
"Contact.Address.Country.value":"US", | |
"Contact.Address.PostalCode.value":"95973", | |
"Contact.Address.State.value":"CA", |
OlderNewer