Skip to content

Instantly share code, notes, and snippets.

View johnpapa's full-sized avatar
🐺Winter is coming

John Papa johnpapa

🐺Winter is coming
View GitHub Profile
johnpapa /
Last active March 21, 2024 18:08
Angular for Architects Workshop Series

Angular Workshop Setup

Please install the following recommended tools prior to the workshop.

Thanks for joining us!

Highly Recommended

  1. Install Visual Studio Code
johnpapa / basics.txt
Last active October 14, 2023 01:52
Name: John Papa
Company: Microsoft
Title: Partner GM - Cloud Advocacy
Twitter: @john_papa
Web site:
johnpapa /
Created February 15, 2022 03:12


We are conducting an experiment to refactor 10 Workshops. We'll update those and then measure for 3 months. The goal is to find ways to increase the module completion rate.

The information below explains my approach. This is simply one direction an evaluation can take, but feel free to take inspiration or an entirely different approach in the experiment.


if we reduce or remove these "leave moments", completion rate will increase.

johnpapa /
Created August 3, 2017 01:37 — forked from spboyer/
Docker Cleanup Scripts

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

johnpapa /
Last active June 29, 2021 11:45
svelte intro

Svelte Intro Steps

Create Hello World

  1. Open

  2. Run the following commands

npx degit sveltejs/template hello-world

johnpapa / character-detail.component.spec.ts
Last active June 8, 2021 10:27
Angular Input Host/Child Component Test
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';
template: '<ro-character-detail [character]="selectedCharacter"></ro-character-detail>'
johnpapa / repo-sync.bash
Last active May 14, 2021 22:27
Repo Sync: Refresh/merge your local and origin with the upstream.
function repo-sync {
# ######################################
# link:
# What this does:
# [𝟙] Get the latest for your origin and upstream main branches'
# [𝟚] Make sure your main origin is in sync with your upstream and your local is pushed
# [𝟛] Checkout your branch and pull the latest'
# [𝟜] Merge main with your branch. This will sync your branch all changes in the upstream
johnpapa / existing.js
Last active May 1, 2021 08:37
Our idea for simpler template code
module.exports = async function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');
const name = ( || (req.body &&;
const responseMessage = name
? "Hello, " + name + ". This HTTP triggered function executed successfully."
: "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.";
context.res = {
// status: 200, /* Defaults to 200 */
johnpapa /
Last active March 8, 2021 15:08
First Serverless API

Create Your First Serverless API


  1. Open VS Code
  2. Go to _git folder

Video 1 - Create Your First Function Using VS Code

Create your first Serverless Function using VS Code

johnpapa / gist:d9c8c99d6079493ff840
Created July 19, 2014 03:51
Jasmine Angular Controller test
describe('avengers', function () {
describe('avengers', function () {
var $controller,