creativecouple.github.com

...anonymous functions. It's API provides you some methods that help you to write readable and understandable method chains. See yourself: Example // before $('.some').show().children().doThat(); window.setTimeout(function(){

...transformed the setTimeout callback into a chainable method. Now the code is easier to read and understand. Image you need to show another node 10 seconds after the hide animation...

makandra dev

...an event listener with delegation .on('click', selector, handlerFn) use a library like Unpoly Read an attribute .attr(name) .getAttribute(name) Write an attribute .attr(name, value) .setAttribute(name, value...

...find some utility functions for DOM manipulation and traversal in the up.element module. Further reading JavaScript without jQuery (presentation from...

...aware of is that when you use the select method, the resulting models are read only and trying to save them will raise an exception! On the other hand the...

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

...the test suite return a text with the name of the file. Otherwise super. Read the browser downloads folder Inspecting the Chrome download folder to test file downloads with selenium

Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String

...content_tag :div, message, class: 'greeting' end That looks clumsy and is hard to read. Wouldn't it be nicer to say something like this? def greeting render_haml <<-HAML...

In case https://www.rubydoc.info/ is to slow or offline, you can also read a gem documentation offline. Start a server with gem server and go to http://0.0.0.0:8808/. Here...

api.jquery.com

...an Array) of element classes. Option B: Using a matcher function Since jQuery 1.4 (read: forever) you may pass a function that disects an element's class, and returns a...

...with(:state).any_of(['purchased', 'published']) } In the sunspot wiki you can also read further about scoping...

...line in that file contains the deployed branch, commit, release ID, and username (was read from the deploying user's machine): $ tail -n3 revisions.log Branch master (at da45511bea63002ac2ff002d1692e09d0dd7cb88) deployed as...

...when that release was deployed. If your release IDs are different, you can try reading the directory's modification timestamp: $ stat -c %y releases/0023...

...no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 7 bytes and written 127 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported...

makandra dev

...transclusion function. For an in-depth introduction, see this Guide to Angular Transclusion. Also read the Angular docs on this...

makandra dev

...you can human-parse this one easily, crontabs with several lines are hard to read. The following command will ignore any comments or environment variables, and order rows by their...

makandra dev
plugins.jquery.com

Please note: There is a ton to configure. Check the demos and read the docs. It does not bring styles for prev/next links etc, so you need to...

tutorialzine.com

...with tests and all caveats fixed. Related topic: JavaScript: Working with Query Parameters Javascript: Read params from url...

...your setup, you might need to change that file's permissions so Apache can read it...

...Using to_s will use a format that is correct but often hard to read. >> regexp.to_s => "(?mi-x:^f(o+)!)" inspect As the Ruby docs say: Perhaps surprisingly, #inspect...

...tagged will @no_parallel can still run in parallel with the tagged test. Please read the previous sentence again. This can help when multiple test processes that access a single...

...attached Knife helper to punch a hole into your closure, through which you can read, write or mock local symbols: klass = (-> privateVariable = 0 privateMethod = -> privateVariable += 1 publicMethod = -> privateMethod()

...deferreds or Bluebird. Deferreds in jQuery 1 and 2 do not have this behavior. Read more Promise-based functions should not throw exceptions

...like suggested at (way too many) places around the interwebs. This gives other users read and write access to the terminal session! Maybe you even want a different terminal multiplexer...

If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...

...lines because it does not know about spreewald, making the file really hard to read. You can disable any unwanted inspection by opening File / Settings / Editor / Inspections and searching for...