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
// Does this stackoverflow NodeJS | |
function readMessage (queue, callback) { | |
setTimeout(function() { callback(queue); }, 0); | |
} | |
function testIt(count) { | |
readMessage(count, function (data) { | |
console.log(data); | |
testIt(data + 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
'use strict'; | |
var checker = require('license-checker'); | |
// Example of how to use: | |
// cd to the node app directory | |
// node license.js ./ > ~/Desktop/app-name.csv | |
console.log("Name@version, repo, licenses"); |
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
// ************************************************************************ | |
// You shouldn't use this anymore. | |
// http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away | |
// | |
// Basically, disable double tap to zoom in on sites on a mobile device. | |
// <meta name="viewport" content="width=device-width"> | |
// | |
// If you want to also disable pinch-zooming | |
// <meta name="viewport" content="width=device-width, user-scalable=no"> | |
// |
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
/* | |
This is a attempted at coding this up: http://blog.jazzychad.net/2012/08/01/array-iteration-problem.html | |
Did it in about 15 mins... I might use this for a phone screen questions. | |
I did use Sublime Text... but that's fine I think. | |
*/ | |
public class Main { | |
public static void main(String[] args) { | |
// # add1 [1,4,1,5,1], 1, 0 -> [2,4,2,5,2] |