author avatar

revath

Thu Apr 04 2019

To avoid diff of package-lock.json in git show: git show ':(exclude)package-lock.json'
author avatar

goromlagche

Fri Mar 29 2019

if you use kaminari(or any pagination) eventually you might want to move to https://github.com/kaminari/kaminari#paginating-without-issuing-select-count-query pagination with just prev and next button. When you have a lot of records, that extra count query might add 100-200ms on page load.
author avatar

iffyuva

Sun Mar 10 2019

To determine public IP address, use this command curl -s checkip.dyndns.org
author avatar

revath

Fri Mar 08 2019

jest: When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
author avatar

revath

Fri Mar 08 2019

When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
author avatar

revath

Tue Mar 05 2019

echo $PATH | sed -e $'s/\:/\\\n/'g or echo $PATH | tr ":" "\n" to see each entry in $PATH in separate line.
author avatar

revath

Tue Mar 05 2019

use :focus-within to keep the parent element visible when focus is on child. Helpful on making dropdown menu.
author avatar

goromlagche

Wed Feb 20 2019

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 49 to 51 of 73 results