docker run -i -t --name nodejs ubuntu:latest /bin/bash
So here, -i
stands for interactive mode and -t
will allocate a pseudo terminal for us.
Some more trivia about these flags.
docker run -i -t --name nodejs ubuntu:latest /bin/bash
So here, -i
stands for interactive mode and -t
will allocate a pseudo terminal for us.
Some more trivia about these flags.
This gist is no longer in use.
About
This is a collection of recipes that I gather from various sources.
It is NOT a replacement for the official docs. I maintain them at a “best effort” basis.
I also provide links to official references in these recipes whenever applicable.
Enjoy, and may the source be with you 🦄.
This gist outlines the change in the depth and breadth of the tasks and responsibilities of a software engineer as she continuously improves herself.
I created this to supplement a discussion in an internal slack group; then I though the rest of the world might benefit from this too.
Contributions are always welcome.
const rafraf = (callback) => { | |
if (!window.requestAnimationFrame) {return null;} | |
return window.requestAnimationFrame(() => | |
window.requestAnimationFrame(callback) | |
); | |
}; |
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
// doublecheck the ClientLocation results because it may returning null results | |
;(function(geolocation){ | |
if (geolocation) return; |
// Assume `dispatch` and `fetchFromNetwork` are defined elsewhere. | |
// ## 1. CPS With Nodebacks | |
// This is the old-school-style fetch. Mostly here for | |
// historical reasons. | |
// | |
// Yet, contrary to the arguments against using it, | |
// it‘s not that hard to maintain this code when you are | |
// careful and know what you are doing. |