Skip to content

Instantly share code, notes, and snippets.

View thisisui's full-sized avatar
🎯
Focusing

Igor Napierala thisisui

🎯
Focusing
View GitHub Profile
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
#!/usr/bin/sh
rm -rf "$HOME/Library/Preferences/WebIde40"
rm -rf "$HOME/Library/Caches/WebIde40"
rm -rf "$HOME/Library/Application Support/WebIde40"
rm -rf "$HOME/Library/Logs/WebIde40"

So you are a UI guy and cannot live without Underscore or Lodash when you write your JavaScript? Well, it is okay but have you ever look into the source of those libraries or you are using them just because everyone does. In this short series I will take methods from lodash and look through most of them to show you what is happening in these methods and why you are using them.

Arrays

compact

So let's get started. First method is compact. This method is very simple and just remove falsy methods from array.

function compact(array) {

var index = -1,

24-26 APR, WARSAW, PL

WEDNESDAY, APRIL 24TH

9:45
Know your errors
DIOGO ANTUNES

10:20
The browser, the programmer and the Dalek

##Front-end blogs worth reading##

Even though for the last few years blogs have been losing popularity to Twitter, Facebook and Google Plus and so on, they're still not dead and have not been replaced with other media.

###Articles, showcases, resources###

  • A List Apart - articles design, development, and web standards
  • DailyJS - news, tips, examples and reviews of a variety of JavaScript frameworks and modules.
  • Mozilla Hacks - one of key resources for people developing for the Open Web