title | date |
---|---|
PM Power Hour presentation |
27 March 2018 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
since=yesterday | |
branch=$(git branch | grep \* | cut -d ' ' -f2) | |
while (( "$#" )); do | |
case "$1" in | |
-s|--since) | |
since="$2" | |
shift 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
#[cfg(test)] | |
extern crate spectral; | |
extern crate test; | |
/// Takes a string containing a number and increments it in place. Returns whether the operation | |
/// was successful. The only time it isn't successful is if the input is empty or the operation | |
/// overflows. | |
/// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myip() { | |
ifconfig | egrep -o '\d{1,3}(\.\d{1,3}){3}' | uniq | fzf | tee /dev/stderr | pbcopy | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>Iteration Burnup</title> | |
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"> | |
</head> | |
<body> | |
<form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "First, make sure your system's up-to-date and you have xcode installed." | |
echo "Let's get this out of the way." | |
sudo xcodebuild -license | |
echo "Getting the Pivotal workstation setup scripts." | |
curl https://github.com/pivotal/workstation-setup/archive/master.zip | unzip | |
mv workstation-setup workspace | |
rmdir workspace/pivotal_ide_prefs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
class A: | |
def __phone_home(self): | |
print('A.__phone_home') | |
def phone_home(self): | |
print('From A') | |
self.__phone_home() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
*.vim | |
.env | |
.env.fish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TAG=$(git tag -l | tail -1) | |
echo "Upgrading to $TAG..." | |
echo | |
git stash save $TAG | |
git fetch origin | |
git checkout $TAG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import datetime | |
DATA_INPUT = 'data/nonpivoted_data.csv' | |
EPISODE_INPUT = 'data/toy_relabeled_episodes.csv' | |
def date(string): |
NewerOlder