CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...

Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...

makandra dev
github.com

A JS library that allows you to embed an iframe that automatically shrinks or expands to match its content.

With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

github.com

Ag (aka "the silver searcher") is a very fast replacement for grep. It will parse your .gitignore for additional speedup...

While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);

You can say this in Javascript: $.fn.jquery => "1.11.1"

makandra dev

Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...

The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...

To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

makandra Curriculum

Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...

PhantomJS has no binary builds for Linux, and building it yourself is painful. However, you can install it through npm...

makandra dev

First install Node.js / npm. Then you can install Bower through npm: sudo npm install -g bower

digitalocean.com

I recommend install Node.js using nvm. This way you can have multiple Node versions in your ~/.nvm. You also won...

You have the following HTML structure:

If you want to run Javascript code whenever someone clicks on a ...

..., you...

andismith.com

If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...

makandra dev
blog.getbootstrap.com

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...

We use Selenium WebDriver integrated with Cucumber/Capybara for full-stack integration testing. Try and use it Your forked MovieDB should...

hacks.mozilla.org

Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...