If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...
tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...
CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...
Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...
SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...
Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...
Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
All major browsers (IE8+, FF3.5+, Safari 4+, any Chrome) support sessionStorage, a JavaScript storage object that survives page reloads and...
When you have an element you want to hide, you can add a ng-show='isOpen' attribute to that element...
Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items.
Jasmine has a jasmine.clock() helper that you can use to travel through time and trigger setTimeout and setInterval callbacks:
jquery-placeholder is a simple jQuery plugin that enables form placeholders in browsers that do not support them natively, i.e...
Rails comes with a Rake task notes that shows code comments that start with "TODO", "FIXME", or "OPTIMIZE".
This cheat sheet...
...aims at providing a quick reference to the most commonly used features in AngularJS.
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...
TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...
Opinionated Angular style guide for teams by @john_papa Not everything in this guide works perfectly for us, but is...
Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...