TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Manu
Rails prepend_before_action to chain before action callbacks.
Published
Author
user-image
Akshay
ActiveSupport::Autoload helps to require the file and loads only when needed
Published
Author
user-image
Yuva
Co-founder
ActiveStorage supports mirror service, one can upload files to multiple storages in 1 shot
Published
Author
user-image
Mrinmoy
mod of negative numbers are complicated :P ruby, python, haskell returns correct value, cpp and js does not.
Published
Author
user-image
Yuva
Co-founder
How to get child pids of a process given pid? pgrep -P
Published
Author
user-image
Manu
Neovim (Vim): To change all the existing tab characters to match the current tab settings, use: :retab
Published
Author
user-image
Manu
Finding the last Sunday in rails.

Code

d = DateTime.now
sunday = d - d.wday


d.wday gives the weekday starting from 0.

Showing 78 to 80 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals