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.

Jan 29, 2018
Postgres VACUUM [https://www.postgresql.org/docs/9.1/static/sql-vacuum.html] - It reclaims storage occupied by dead tuples.
manu
Manu
Jan 25, 2018
Rspec's subject is a special variable that refers to the object being tested. It's instantiated implicitly but can also be done explicitly. Handy to be used with shoulda matchers.
manu
Manu
Jan 24, 2018
In Tmux, prefix+t shows the current time in big font size
emil
Emil
Jan 24, 2018
mrinmoy
Mrinmoy
Jan 23, 2018
looping through a collection of records in database using methods like all is very inefficient (it tries to instantiate all objects at once) and should resort to batch processing methods eg: find_each.
manu
Manu
Jan 22, 2018
ansible lets u use ansible_distribution ( values : Ubuntu, CentOS etc), ansible_distribution_release (values : xenial, precise etc) to write dist specific commands
ganesh
Ganesh
Jan 16, 2018
There is a global location for git ignore *nix - ~/.config/git/ignore
manu
Manu
Jan 14, 2018
open chrome devtools, press cmd(ctrl) + shift + p and type show coverage and press enter, once you reload the page you can see the amount of JS fetched and how much is actually getting used on that page
harshwardhan
Harshwardhan
Jan 10, 2018
ruby has a permutation method for Array. https://apidock.com/ruby/Array/permutation
manu
Manu
Jan 10, 2018
Array.from() takes a second argument which is a map. Example: Array.from(Array(10), (element, index) => //some logic to fill the array)
harshwardhan
Harshwardhan

Showing 70 to 72 of 80 results

Ready to Build Something Amazing?

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