The Double Equals Operator in JavaScript

After reading this article, you will know all you need to know about coercion and double equals in JavaScript. The double equals (loose equality) operator is »

Filter an array with a simple curried function

TL;DR ... const activeUsers = (input) => { const is = field => item => ( item[field] ) return input.filter(is('isActive')) } The is function is a curried function »

Memoization in JavaScript

There are many places where you can take advantage of memoization to save computation space and time. One example is computing the n-th term of a »

SASS Mixins with Default Parameters Using Maps

Creating mixins with default parameters is very easy in SASS using maps. Let's say we have a mixin called button size that takes a configuration map »

Hello World Mocha

Install Mocha globally: npm install –g mocha Then create the package.json file in your project directory: npm init And install should. Should is an assertion »

CSS Rant

My Rant on Writing CSS for large scale applications A note on descendent selectors: You should not totally avoid them. It would be a little bit »

Handling errors when working with SASS, Watch, Plumber and Gulp

When working with Gulp, you need to return streams as one of the days to set up task dependencies. Something like this: gulp.task('sass', function( »

Enable gzip on Apache

Make sure the deflate module is enabled: sudo a2enmod deflate then add the following to your vhoste file: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html »

Hello World Desktop App with Node.js

Hello node-webkit With node-webkit, you can create desktop applications with CSS/HTML/JS and more importantly take advantage of node modules directly inside the html. In »

Using Q and Promises to read from file with Node

Project Files Click here to download the project files. ... Also be sure to check out my latest course on Angular 2 using this coupon link: http: »