Instantly share code, notes, and snippets.

View SETUP.md
View zeroconfig.sh
npm install -g @vue/cli-service-global
echo '<template><h1>Hello!</h1></template>' > App.vue
vue serve
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

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
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
View .bash_profile
function parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u @ \w$\[\033[32m\]\$(parse_git_branch)\[\033[00m\] \n$ "
View .eslintrc.json
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
View character-detail.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Component, NO_ERRORS_SCHEMA, DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser';
import { CharacterDetailComponent } from './character-detail.component';
import { Character, DataService } from '../../core';
import * as testing from '../../../testing';
@Component({
template: '<ro-character-detail [character]="selectedCharacter"></ro-character-detail>'