Skip to content

Instantly share code, notes, and snippets.

View peterbsmyth's full-sized avatar

Peter B Smith peterbsmyth

View GitHub Profile
@peterbsmyth
peterbsmyth / .bashrc
Created February 9, 2019 17:01 — forked from drewknab/.bashrc
.bashrc requires bash > 4.1 [FIXES escape bug]
git=""
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
STR=$'\u251c'
STR+=$'\u2574'
STR+="$cyan${BRANCH}${STAT}"
@peterbsmyth
peterbsmyth / webpack.server.config.js
Created May 20, 2018 20:11 — forked from kseniya292/webpack.server.config.js
Angular Universal Webpack Config File
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: { server: './server.ts' },
resolve: { extensions: ['.ts', '.js'] },
target: 'node',
// this makes sure we include node_modules and other 3rd party libraries
externals: [/(node_modules|main\..*\.js)/],
output: {
@peterbsmyth
peterbsmyth / post-data.json
Last active December 13, 2017 18:49 — forked from djowinz/post-data.json
Account Creation: Pro
{
"legal_entity.address.city": "CA",
"legal_entity.address.line1": "56 Bridgeport Street",
"legal_entity.address.line2": "",
"legal_entity.address.postal_code": "92629",
"legal_entity.address.state": "California",
"legal_entity.dob.day": 26,
"legal_entity.dob.month": 8,
"legal_entity.dob.year": 1992,
"legal_entity.ssn_last_4": 0000,
@peterbsmyth
peterbsmyth / France2012.tsv
Last active August 29, 2015 14:25
Udacity D3 Project
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 41 columns, instead of 38 in line 5.
Year Div Date HomeTeam AwayTeam FTHG FTAG FTR HTHG HTAG HTR HS AS HST AST HF AF HC AC HY AY HR AR B365H B365D B365A BWH BWD BWA IWH IWD IWA LBH LBD LBA WHH WHD WHA VCH VCD VCA
2012 France 06/08/2011 Ajaccio Toulouse 0 2 A 0 1 A 18 13 6 8 14 17 11 4 4 2 0 0 2.63 3.00 2.88 2.60 2.95 2.80 2.50 3.00 2.70 2.60 3.00 2.60 2.60 3.00 2.88 2.63 3.10 3.00
2012 France 06/08/2011 Brest Evian Thonon Gaillard 2 2 D 2 2 D 23 9 7 3 12 15 11 8 2 2 0 0 2.30 3.00 3.40 2.15 3.10 3.40 2.10 3.10 3.30 2.20 3.00 3.20 2.30 3.00 3.40 2.40 3.10 3.40
2012 France 06/08/2011 Caen Valenciennes 1 0 H 1 0 H 11 11 3 6 12 11 3 11 2 1 0 0 2.30 3.00 3.40 2.25 3.00 3.30 2.10 3.00 3.40 2.20 3.00 3.20 2.38 3.00 3.20 2.30 3.20 3.60
2012 France 06/08/2011 Marseille Sochaux 2 2 D 1 0 H 27 8 8 3 15 13 4 5 1 3 0 0 1.53 3.80 6.75 1.50 3.90 6.25 1.45 3.90 6.50 1.57 3.50 5.50 1.57 4.00 5.50 1.57 4.00 7.00
2012 France 06/08/2011 Montpellier Auxerre 3 1 H 1 1 D 13 18 4 8 16 22 4 5 0 1 0 0 2.10 3.10 3.80 2.10 3.00 3.70 2.25 3.00 3.05 2.10 3.00 3.40 2.25 3.10 3