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
Yuva
Co-founder
When using docker-compose and when in doubt that containers are getting cached, pass --build option. Works like charm
Published
Author
user-image
Mrinmoy
chrome://net-internals
Published
Author
user-image
Amit
use chrome(v65 and above) local overrides to modify a webpage's assets and store on your local which will be loaded everytime you open the website - https://www.youtube.com/watch?v=UOn0b5kn3jk
Published
Author
user-image
Emil
If you have a dimple, it's a muscle atrophy - basically your muscle doesn't work
Published
Author
user-image
Harshwardhan
Use AbortController to cancel the promise.
/code
const controller = new AbortController();
const signal = controller.signal;
// pass this signal as option in your fetch request
fetch(url, {signal}).then(...).catch(...)

// now you can reject the above promise by calling abort like this
signal.abort()

//promise will get rejected with error "AbortError"
Published
Author
user-image
Mrinmoy
rendering templates outside of controller "SomeController.render :index, formats: :csv, locals: { users: users }"

Showing 71 to 73 of 82 results

Ready to Build Something Amazing?

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