...is a method Hash#to_query that will turn a Hash into a query string: >> {:a => "a", :b => ["c", "d", "e"]}.to_query => "a=a&b%5B%5D=c&b...
...a=a&b[]=c&b[]=d&b[]=e" If you're on the browser side, you can serialize nestd objects to query strings using jQuery's $.param...
Quick introduction to git internals for people who are not scared by words like Directed Acyclic Graph. The linked page offers a simple yet concise explanation of how git is...
...a directed acyclic graph with post-it notes'). Each feature is illustrated by a simple diagram, so you get a sound understanding of how each command affects git's structure...
...write this instead: expect(value).to eq(true) expect(value).to eq(false) See also RSpec claims nil to be false
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use isolated scopes"), but it's a nice summary of what...
...the purpose of this article "large" mostly mean "large number of watchers/bindings on a single screen". Angular doesn't automatically become large just because you have a lot of screens...
...definitive reference for what work is triggered by changing various CSS properties. It's something I get asked about often enough by developers, and while we can do tests with...
...DevTools, I have both the time and inclination to shortcut that for everyone. I'm nice like that. —Paul Lewis
...are times when you have a chunk of text that you want to do something with, e.g. replace something on it, or quickly edit it. While you can open your...
...favorite non-RubyMine editor for this, there is also a plugin: Scratch. It allows RubyMine to open temporary files (actually they are saved, but somewhere inside the plugin's directory...
...and titles, like [#15775609] Index view for conflicts The geordi command commit automates this. (See: Pretty Commit messages via geordi). Just run geordi commit and it will connect to PT...
...and let you select from a list of all started and finishes stories. Then it runs git commit with the generated message (i.e. all staged changes will be commited).
The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check out some of our cards about encoding: Ruby's default...
...encodings can be unexpected How to fix invalid byte sequence in UTF-8 error
Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...
...should be familiar with coordinates. Most JavaScript methods deal with one of two coordinate systems: Relative to the window(or another viewport) top/left. Relative to the document top/left.
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need to know this for web development, but it's an...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes...
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to use FFI which is a bit awkward (see the gem...
...s code), or call commands like df -B1 and search the strings for your relevant data. That gem takes the pain away and works nicely...
Install this gem and stop using bundle exec or even Geordi's handy b. Yay...
Using the CSS border-radius property, we can create rounded shapes and circles. Add some gradients and they become spheres. Let’s try that, and add some animation to bring...
Clever hack using data-attributes to assign labels to cells. It's still a massive duplication of code (labels), but better and more lightweight than most solutions I've seen...
...for this surprisingly tricky problem...
Want to find that repo you've starred some time ago again? Here's where to search for it. An alternative way to browse and search through your starred repos...
...is Astral, where you'll see the Readme for each repo in a split screen...
...because everyone's used to dealing with addresses and 99% of the time they seem so simple. Below are some incorrect assumptions I've seen made, or made myself, or...
A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...
It's like Paperclip or CarrierWave, but without any automagic integration.
So you erased a whole day's work? There is hope! The linked article tells how to recover from an...
jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes.