When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...
Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...
The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when the...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...
List of variables used in Bootstrap. Overwrite to customize your bootstrap application. When you are using bootstrap-sass, simply replace...
If you want to do JavaScript-style camelization, ActiveSupport's String#camelize method can actually help you out. Simply pass...
Internet Explorer on Windows 8 and 8.1 is available in a "Desktop version" and the metro version which is designed...
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...
If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
Browsers usually cache favicons. If you update the favicon of your web site and want all visitors to see the...
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...
Like in any language, a FLOAT has complicated semantics for precision. This sometimes causes stored numbers to be slightly off...
I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...
class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...
Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...
Make your custom web font available Add to ckeditor/config.js CKEDITOR.editorConfig = function(config) { config.contentsCss = [ '/assets/myCkeditorStyles.css', // any other file to encapsulate custom...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...