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...
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...
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...
If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...
List of variables used in Bootstrap. Overwrite to customize your bootstrap application. When you are using bootstrap-sass, simply replace...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
When you, as a developer, look at the choices used to build a particular application, you’re blown away at...
How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.
Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
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...
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...
When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...
Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...
RulersGuides.js is a Javascript library which enables Photoshop-like rulers and guides interface on a web page Also available as...
If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
Non-static elements will not inherit their parent's opacity in IE for no good reason. This can lead to...