revath
Wed Mar 28 2018
mock moment using jest http://www.bambielli.com/til/2018-01-07-mocking-constructors/
akshay
Wed Mar 28 2018
We can make use of Set instead of an Array in Ruby when we would like to create sequences without duplicates and also can be used to compare two sets disregarding order as compared to array for which order of elements matter.
akshay
Wed Mar 28 2018
ActiveModel Boolean type inlcudes rules for coersion to handle user input appropriately. We can make use of this when ever we would need to do explicit type casting on user input. https://github.com/rails/rails/blob/47eadb68bfcae1641b019e07e051aa39420685fb/activemodel/lib/active_model/type/boolean.rb
mrinmoy
Fri Mar 23 2018
active support has an unordered map like structure https://apidock.com/rails/ActiveSupport/OrderedHash, but it is actually called ordered hash (shrug)
manu
Thu Mar 22 2018
Multiple ways to read files in golang explained - http://kgrz.io/reading-files-in-go-an-overview.html
yuva
Wed Mar 21 2018
When using docker-compose and when in doubt that containers are getting cached, pass --build
option. Works like charm
mrinmoy
Sun Mar 18 2018
chrome://net-internals
amit
Sat Mar 17 2018
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
emil
Thu Mar 15 2018
If you have a dimple, it's a muscle atrophy - basically your muscle doesn't work
harshwardhan
Thu Mar 15 2018
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"
Showing 54 to 56 of 66 results