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
Revath
To avoid diff of package-lock.json in git show: git show ':(exclude)package-lock.json'
Published
Author
user-image
Iffyuva
To determine public IP address, use this command curl -s checkip.dyndns.org
Published
Author
user-image
Revath
jest: When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
Published
Author
user-image
Revath
When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
Published
Author
user-image
Revath
echo $PATH | sed -e $'s/\:/\\\n/'g or echo $PATH | tr ":" "\n" to see each entry in $PATH in separate line.
Published
Author
user-image
Revath
use :focus-within to keep the parent element visible when focus is on child. Helpful on making dropdown menu.
Published
Author
user-image
Goromlagche
in rails unscope doesnt used to work with joins/left_joins, but recently has been fixed and backported to 5.1 and 5.0

Showing 59 to 61 of 83 results

Ready to Build Something Amazing?

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

  • Address
    2nd Floor, Zee Plaza,
    No. 1678, 27th Main Rd,
    Sector 2, HSR Layout,
    Bengaluru, Karnataka 560102
  • Contact

    +91-9731601276