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 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
Jan 9, 2018
this seems a pretty cool library http://shrinerb.com/
mrinmoy
mrinmoy
Jan 5, 2018
Rails console does lazy connection to database and this behaviour can be changed with by adding ActiveRecord::Base.connection to console config block.
manu
manu
Jan 3, 2018
"localization" referred as "l10n", and "internationalization" referred as "i18n". cause,
l10n => "l" in between 10chars(o, c, a, l, i, z, a, t, i, o) and then "n"
i18n => "i" in between 18chars and then "n"
Also Globalization (g11n), Localizability (l12y).
I didnt knew, never noticed, and I feel stupid now :P
mrinmoy
mrinmoy
Jan 3, 2018
[...Array(100).keys()] will return a range from 0 to 100
harshwardhan
harshwardhan

Showing 68 to 70 of 77 results

Ready to Build Something Amazing?

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