Skip to content

Instantly share code, notes, and snippets.

View joshwiens's full-sized avatar

Joshua Wiens joshwiens

View GitHub Profile
@joshwiens
joshwiens / cheatsheet.md
Created July 2, 2017 11:42
Docker Cheat Sheet

Get IP of specific container

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <containerName>
@joshwiens
joshwiens / vscode-styles.css
Created June 15, 2017 01:24
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono Book';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'
npm test | gnomon -t elapsed-total -h 3 -m 1.5
@joshwiens
joshwiens / defaults_notes.md
Last active February 22, 2017 09:36
Notes on using webpack-defualts for an upgrade

1.) npm i -D webpack-defaults

2.) Add webpack-defualts to scripts

3.) Execute npm run webpack-defaults

Initial update checkpoint

  • Babel outputs to ./dist the files field for an existing repo is all but guaranteed to be wrong and require updating. This should be documented unless there is a way to migrate existing files settings to incorporate the dist output ( more trouble than it's worth imo)
  • Uses yarn, yarn-debug.log* needs to be ingored on update as well.
@joshwiens
joshwiens / webpack-stats.js
Created January 18, 2017 23:04
Quite Webpack Stats
stats: {
colors: true,
hash: true,
timings: true,
chunks: true,
chunkModules: false,
children: false,
modules: false,
reasons: false,
warnings: true,
SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE datname = 'regress'
AND pid <> pg_backend_pid()
AND state = 'idle'
AND state_change < current_timestamp - INTERVAL '1' MINUTE;
@joshwiens
joshwiens / intercept-http.ts
Created November 8, 2016 22:23
Basic HTTP Interception
import { Injectable } from '@angular/core';
import {
Http,
RequestOptions,
RequestOptionsArgs,
Response,
ConnectionBackend
} from '@angular/http';
import { Observable } from 'rxjs/Observable';
@joshwiens
joshwiens / ngrxintro.md
Created November 5, 2016 17:08 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents