Skip to content

Instantly share code, notes, and snippets.

Avatar

tleb

  • France
View GitHub Profile
@tleb
tleb / nodemon.bat
Created Feb 21, 2016
nodemon command
View nodemon.bat
cls
nodemon -e js,css,sass,scss,json,html -x "cd src/ && node" -w src server.js
@tleb
tleb / type.js
Created Feb 21, 2016
type() function
View type.js
/**
* @link http://stackoverflow.com/a/20441656/4255615
*/
var type = function(thing) {
var typeOfThing = typeof thing;
if (typeOfThing === 'object') {
typeOfThing = Object.prototype.toString.call(thing);
if (typeOfThing === '[object Object]') {
if (thing.constructor.name) {
return thing.constructor.name;
View new_gist_file_0
SHUT UP YOUR MOUTH
________________
\ __ / __
\_____()_____/ / )
'============` / /
#---\ /---# / /
(# @\| |/@ #) / /
\ (_) / / /
|\ '---` /| / /
_______/ \\_____// \____/ o_|