Skip to content

Instantly share code, notes, and snippets.

View tleb's full-sized avatar

tleb

  • France
View GitHub Profile
@tleb
tleb / nodemon.bat
Created February 21, 2016 10:43
nodemon command
cls
nodemon -e js,css,sass,scss,json,html -x "cd src/ && node" -w src server.js
@tleb
tleb / type.js
Created February 21, 2016 08:43
type() function
/**
* @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;
SHUT UP YOUR MOUTH
________________
\ __ / __
\_____()_____/ / )
'============` / /
#---\ /---# / /
(# @\| |/@ #) / /
\ (_) / / /
|\ '---` /| / /
_______/ \\_____// \____/ o_|