If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

makandra dev

To print a colored full-width bar on the bash, use this bash script expression: echo -e '\033[37;44m...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

makandra dev
github.com

Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...

If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...

Sometimes you want to strip a text of every special char. If you use \W, the result might not be...

If you want to test that a certain text is contained within the document title of your page, you can...

makandra dev
bradfrostweb.com

A clever way to have inline labels ("placeholders") that don't disappear when the user enters text.

fontawesome.io

Font Awesome 4 has renamed all icons. What the fuck. Check the attached link for an icon list for the...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

askubuntu.com

If your XFCE renders text with overly hard, thin lines instead of smooth anti-aliased lines, you might need to...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

tjvantoll.com

Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?

Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...

For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...

Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...

Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...

Say you want to allow users to emphasize some string, but the whole markdown thing would be far too much...

Spreewald's patiently repeats the given block again and again until it either passes or times out.