If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...

medium.com

Article about implementing authentication (current_user) and authorization (access rights) in AngularJS. Has an surprising amount of practical and understandable...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...

When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...

kadin.sdf-us.org

This is just a quick note, mostly for my own reference, of a few ways to easily delete the dot...

makandra dev
mark-rolich.github.io

RulersGuides.js is a Javascript library which enables Photoshop-like rulers and guides interface on a web page Also available as...

css-tricks.com

Crazy hack. Might be useful one day. The code required has since been extracted into a library.

cssdeck.com

Clever hack to allow user interaction without Javascript (by using radio buttons and selecting on :checked).

You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...

When you do something like this in your code: def var_value @var ||= some_expensive_calculation end

confreaks.com

Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

Setting the colorbox opacity by hash parameter when initializing doesn't work the way like the documentation tells you.

How to define and call class methods in CoffeeScript classes: class Foo @classMethod: -> @otherClassMethod() instanceMethod: -> @otherInstanceMethod() @constructor.classMethod()

makandra dev
amsul.ca

The mobile-friendly, responsive, and lightweight jQuery date & time input picker. Does not depend on jQuery UI, but currently does...

makandra dev
github.com

It's mixins (modules) for Coffeescript classes. Other than most homegrown approaches, this one allows you to keep using super...

Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...

ng-newsletter.com

Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...

github.com

We proudly release our safe_cookies middleware into public beta and just published it on Github. Features are:

divshot.com

Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...

When you build a link for an email body like this body = "Please click the following link" body << "http://posts/130...