Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...
CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...
RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...
Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...
Tod is a gem for working with daytimes. That's a tuple of (hour, minute second) without a day, month...
Today's cameras create huge images, some beyond 50MB. Unless you need to offer this large files, you should always...
This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...
There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
In this example we assume that not only the storage gem changes but also the file structure on disc.
Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...
...HTML's accepts a single file. You can allow multiple files via . But sometimes, selecting multiple files is not enough...
Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...
Rails defines a #truncate helper as well as a method String#truncate. = truncate("my string", length: 5) = "my string".truncate...
The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...
Here is how to model basic logic in media queries. AND With keyword and. # Target viewport widths between 500 and...
When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...
Using the JS fullscreen API is painful because all browers use different methods and events and you need to use...
For outputting a given String in HTML, you mostly want to replace line breaks with or tags.
When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...
If you have a single node elasticsearch instance and indices with replicas enabled your cluster state will be yellow. If...