Based on: http://cl.ly/image/1f212d1A1j13
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
// most snippets found at | |
// https://github.com/bahmutov/code-snippets for most snippets | |
// https://github.com/bgrins/devtools-snippets/ | |
(function loadAllSnippets(window) { | |
var keyname = 'snippets', | |
templates = { | |
bgrinsImg:'https://rawgit.com/bgrins/devtools-snippets/master/snippets/$s/$s.png', | |
}, | |
remoteSnippet = { |
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
OH_SHIT_I_NEED_GLOBALS = 100001; | |
function iWantThis () { | |
while (count < window.OH_SHIT_I_NEED_GLOBALS) { | |
count = Math.random()*100000; | |
} | |
return "I haven't googled node yet. How does threads happen? So blocking, much crap." | |
} | |
iWantThis(); |
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
"use strict"; | |
function formatDuration(duration) { | |
var resultType = 'ms'; | |
var resultVal = duration; | |
if (duration > 999 && duration < 60000) { | |
resultType = 'sec'; | |
resultVal = duration / 1000; | |
} else if (duration > 59999 && duration < 3600000) { | |
resultType = 'min'; |
My first exploration into moiré patterns in css animations. Inspired by http://i.imgur.com/p0NQtgI.jpg