Instantly share code, notes, and snippets.

John Papa johnpapa

View GitHub Profile
@johnpapa
johnpapa / SETUP.md
Created Feb 3, 2019
Vue Fundamentals Workshop Setup
View SETUP.md
@johnpapa
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 Bookmarklets.org/maker/
// Step 2: Change the first 3 variables: alias, event, docs
// Step 3: At the bottom of the Bookmarklets.org 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
javascript:
(
@johnpapa
johnpapa / vue.md
Last active Feb 20, 2019
Introduction to Vue
View vue.md

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
johnpapa / SETUP.md
Last active Feb 3, 2019
Angular Workshop Setup Instructions
View SETUP.md
@johnpapa
johnpapa / zeroconfig.sh
Created Sep 20, 2018
zero config vue app
View zeroconfig.sh
npm install -g @vue/cli-service-global
echo '<template><h1>Hello!</h1></template>' > App.vue
vue serve
@johnpapa
johnpapa / doc.md
Created Aug 9, 2018
cosmos api doc
View doc.md

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
johnpapa / .angular-cli.schema.json
Created Nov 21, 2017
Angular CLI Config Schema
View .angular-cli.schema.json
{
"$schema": "http://json-schema.org/schema",
"id": "https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/lib/config/schema.json#CliConfig",
"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
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
View DockerCleanupScripts.md

Docker - How to cleanup (unused) resources

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

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

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