Skip to content

Instantly share code, notes, and snippets.

Avatar

Pete Givens petegivens

View GitHub Profile
View docker_overview.md

Docker

Image VS Container

  • An image is an executable package that includes everything needed to run an application–the code, a runtime, libraries, environment variables, and configuration files.

  • A container is launched by running an image. A container is a runtime instance of an image–what the image becomes in memory when executed (that is, an image with state, or a user process).

Container VS Virtual Machine

A container runs natively on Linux and shares the kernel of the host machine with other containers. It runs a discrete process, taking no more memory than any other executable, making it lightweight.

@petegivens
petegivens / favorite_extensions.md
Created Feb 10, 2018
Favorite Extensions for VS Code
View favorite_extensions.md

Useful Extensions for VS Code

  1. ESLint - real-time code syntax checking and error highlighting based on ESLint configuration. I'm pretty sure this comes with VS Code by default, but if not, it's the first one you should install.
  2. npm Intellisense - predictive auto-completion for your npm module imports
  3. Bracket Pair Colorizer - Makes matching brackets and parens the same color, highlights unmatched brackets in red.
  4. Prettier - code autoformatting
  5. Git History - This one ships with the latest release of VS Code. AWESOME visual tools for viewing git history, jumping to speci
View detectNetwork.test.js
/*
* You'll eventually be given instructions how to use this file
* If you want to use it before then, you'll have to figure it out yourself
*/
// You don't actually want to fill *this* value in on line 9, but you'll see
// other places in this file where you'll replace the FILL_ME_IN with a
// different value.
var FILL_ME_IN = 'Fill this value in';
You can’t perform that action at this time.