I hereby claim:
- I am pmlandwehr on github.
- I am pmlandwehr (https://keybase.io/pmlandwehr) on keybase.
- I have a public key whose fingerprint is E52C 8236 4C59 F08E 71DE FB24 455C 1BAD AC10 09DC
To claim this, I am signing this object:
function string-pad --description 'Pad strings to a particular length using a character' | |
set -l options | |
set -a options "h/help" | |
set -a options "l/left" | |
set -a options "r/right" | |
set -a options "m/max=!_validate_int" | |
set -a options "n/count=!_validate_int" | |
set -a options "c/char=" | |
argparse --name="string-pad" $options -- $argv |
function string-pad --description 'Pad strings to a particular length using a character' | |
set -l options | |
set -a options "h/help" | |
set -a options "l/left" | |
set -a options "r/right" | |
set -a options "m/max=!_validate_int" | |
set -a options "n/count=!_validate_int" | |
set -a options "c/char=" | |
argparse --name="string-pad" $options -- $argv |
mkdir data_work | |
docker run -d -p 8888:8888 \ | |
-e GEN_CERT=yes \ | |
-v data_work:/home/jovyan/work \ | |
jupyter/datascience-notebook start-notebook.sh \ | |
--NotebookApp.password='sha1:74ba40f8a388:c913541b7ee99d15d5ed31d4226bf7838f83a50e' # put hashed password here |
#!/usr/bin/env bash | |
# Install any necessary packages with apt-get | |
sudo apt-get install -y curl wget | |
# Get installer | |
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | |
--output miniconda_installer.sh | |
# Run installer |
from bs4 import BeautifulSoup | |
import numpy as np | |
import pandas | |
import requests | |
from tqdm import tqdm | |
TOTAL_CF_REPO_PAGES = 45 | |
package_tags = list(chain.from_iterable([ | |
BeautifulSoup(requests.get('https://anaconda.org/conda-forge/repo', |
/* | |
Placeholder for custom user CSS | |
mainly to be overridden in profile/static/custom/custom.css | |
This will always be an empty file in IPython | |
*/ | |
@import url('http://fonts.googleapis.com/css?family=Crimson+Text'); | |
@import url('http://fonts.googleapis.com/css?family=Kameron'); | |
@import url('http://fonts.googleapis.com/css?family=Lato:200'); | |
@import url('http://fonts.googleapis.com/css?family=Lato:300'); |
def mefi_strptime(x): | |
from datetime import datetime | |
try: | |
return datetime.strptime(x, '%b %d %Y %I:%M:%S:%f%p') | |
except ValueError: | |
return datetime(1900, 1, 1, 0, 0, 0) | |
def int_with_filled_nans(x): | |
import numpy as np |
import csv | |
import ujson as json | |
import gzip | |
import sys | |
from tqdm import tqdm | |
def validate_to_set(x): | |
if x is None: | |
return set() |
#!/bin/bash | |
if [ "$#" -le 0]]; then | |
echo Usage: ./letsencrypt_nfsh.sh domain [domain 2] [domain 3]... | |
exit 0 | |
fi | |
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem -O intermediate.pem | |
wget https://raw.githubusercontent.com/diafygi/acme-tiny/master/acme_tiny.py -O acme_tiny.py | |
for dir in /home/public/.well-known/ /home/public/.well-known/acme-challenge/; do |
I hereby claim:
To claim this, I am signing this object: