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
johnpapa / Requirements.md
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
johnpapa / basics.txt
Last active October 14, 2023 01:52
bio
Name: John Papa
Company: Microsoft
Title: Partner GM - Cloud Advocacy
Twitter: @john_papa
Web site: https://www.johnpapa.net
@johnpapa
johnpapa / hyp.md
Created February 15, 2022 03:12
Thoughtful-Hypothesis

Context

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.

Hypothesis

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

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

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

@johnpapa
johnpapa / steps.md
Last active June 29, 2021 11:45
svelte intro

Svelte Intro Steps

Create Hello World

  1. Open https://svelte.dev/

  2. Run the following commands

npx degit sveltejs/template hello-world

@johnpapa
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';
@Component({
template: '<ro-character-detail [character]="selectedCharacter"></ro-character-detail>'
@johnpapa
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: https://jpapa.me/reposync
#
# 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
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.query.name || (req.body && req.body.name));
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
johnpapa / steps.md
Last active March 8, 2021 15:08
First Serverless API

Create Your First Serverless API

Setup

  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
johnpapa / gist:d9c8c99d6079493ff840
Created July 19, 2014 03:51
Jasmine Angular Controller test
describe('avengers', function () {
describe('avengers', function () {
var $controller,
dataservice,
$httpBackend,
$location,
$q,
$rootScope,
$route,
scope;