Instantly share code, notes, and snippets.

John Papa johnpapa

View GitHub Profile
johnpapa /
Created Feb 3, 2019
Vue Fundamentals Workshop Setup
johnpapa / bookmarklet.js
Last active Jan 25, 2019
link generator for bookmarklet
View bookmarklet.js
// Directions
// Step 1: Click Gist Raw, then Copy/Paste entire gist into
// Step 2: Change the first 3 variables: alias, event, docs
// Step 3: At the bottom of the page, right click the Bookmarklet Hyperlink and "copy link"
// Step 4: Right click int he bookmark bar in the browser and paste
// Credit: Thanks to Shayne Boyer and Scott Care for core code and inspiration
johnpapa /
Last active Feb 20, 2019
Introduction to Vue

Getting Started with Vue

Getting Started with Vue

  • What makes Vue stand out (about vue and the ecosystem)
  • Requirements
  • Recommended/Key tooling
  • Component basics
  • Single File Component (SFC)
  • Template vs Script vs Styles
johnpapa /
Last active Feb 3, 2019
Angular Workshop Setup Instructions
johnpapa /
Created Sep 20, 2018
zero config vue app
npm install -g @vue/cli-service-global
echo '<template><h1>Hello!</h1></template>' > App.vue
vue serve
johnpapa /
Created Aug 9, 2018
cosmos api doc

title: Node.js tutorial for the SQL API for Azure Cosmos DB | Microsoft Docs description: A Node.js tutorial that demonstrates how to connect to and query Azure Cosmos DB using the SQL API keywords: node.js tutorial, node database services: cosmos-db author: deborahc manager: andrl editor: monicar

ms.service: cosmos-db

johnpapa / .angular-cli.schema.json
Created Nov 21, 2017
Angular CLI Config Schema
View .angular-cli.schema.json
"$schema": "",
"id": "",
"title": "Angular CLI Config Schema",
"type": "object",
"properties": {
"$schema": {
"type": "string"
"project": {
View .eslintrc.json
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
"parserOptions": {
"ecmaFeatures": {
"jsx": true
johnpapa / Dockerfile
Created Aug 21, 2017
Docker with angular and node
View Dockerfile
# clone the code
git clone
# build the docker image locally
docker build -t angular-cosmosdb-app .
# show the image
docker images
# run it locally

Docker - How to cleanup (unused) resources

Cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm