JS

The typeof null and isObject() short story

null is a primitive but typeof(null) return “object” Reason? In short: it is bug in ECMAScript, and the type should be null. This is a official mistake in the language, carefully kept from 90’s for compatibility. Examples:

How weRead more…

Upgrade to NodeJS 4, the easy steps

NODE INSTALL/UPDATE: Download 4.2.1 from https://nodejs.org/en/ Node.js it will be at:

npm :

Make sure that /usr/local/bin is in your $PATH using:

INSTALL NWJS:

INSTALL/UPDATE CORDOVA:

—=-=- Validate build execution (if this apply on yourRead more…

git

DiffMerge merging tool: Installation and configuration for GIT

DiffMerge merging tool: Installation and configuration for DiffMerge using GIT 1- Download and install your version from: https://sourcegear.com/diffmerge/ 2- run these commands on the terminal

Usage

Handle just with the: “~/.gitconfig” Git offers a range of difftools pre-configuredRead more…