When you try to compile ES6 syntax with Uglifier gem initialized you get this error: ``` Uglifier::Error: (...) To use ES6 syntax, harmony mode must be e...
Short and working solution to restore deleted git branch
Pony gem allows to easily send good looking and customizable emails, but it doesn't provide a way to include image in a way that it will be displayed in gma...
Puppeteer is node library providing high level chromium api. One of it's key features is generating pdf from html using chromium web engine. This is great ad...
Use this syntax to format raw SQL nicely in ruby code. In some editors it also enables SQL syntax highlighting.
The tutorial that is short, well performed and works!
This jsx ```react <React.Fragment> <h1>Hello World</h1> <p>This is paragraph</p> </React.Fragment> ``` Will be compiled into this html ```h...
In chrome developer tools go to "Sources" find "Event Listener Breakpoints" and select "Mouse -> mousedown". Now each time the event is triggered, chrome wil...
To use Brakeman, the only thing is to install the gem: ``` $ gem install brakeman ``` and then run the single command in Rails application's root dir...
Organize Pundit error messages and redirects in a decorator. Simplify reuse and maintenance
Need filters, remote paginations, search field in table, selecting row and much more ... You will find everything in this library
When you accidentally commit to master/staging and need to move the commit to a feature branch
You can define external urls in routes.rb instead of creating helpers manually
Reset devise passwords quickly, even for thousands of users.
If you use a Rubocop-connected linter in your IDE, one thing that keeps driving you mad is `Missing frozen string literal comment.` warning. In this post, I'll show you how to disable it.
This app allows you to upload screenshots and paste them into a fake phone/laptop mockup.
How to get image details like creation date and tile using MiniMagic
I encountered a problem when dropping a production database. Here's the solution
Sometimes some task takes a long time and you want to know when it finishes. The system can show you desktop notification with predefined (or added as variable) message.
Configure wicked_pdf with: ```ruby disable_smart_shrinking: true ``` Then you can accurately use `mm` and `cm` as units in your CSS