View editor.go
This file contains 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
/* | |
Wrapper for a command line editor to edit files. | |
*/ | |
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"flag" | |
"fmt" |
View ca.go
This file contains 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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" |
View wide_argparse.py
This file contains 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
def main(args): | |
pass | |
def make_wide(formatter, width=120, max_help_position=42): | |
""" | |
Increase space between arguments and help text, if possible. | |
See: https://stackoverflow.com/questions/5462873/ | |
""" | |
try: |
View zipr.py
This file contains 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 | |
import os | |
import json | |
import random | |
import zipfile | |
config = { | |
"color": "red", | |
"amount": 42.24, |
View ani.py
This file contains 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 json | |
import random | |
import asyncio | |
import argparse | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
from functools import partial |
View requires
This file contains 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 python | |
# requires | |
# Creates a requirements.txt file using pip freeze. | |
# | |
# Author: Benjamin Bengfort <benjamin@bengfort.com> | |
# Created: Fri Jan 22 08:50:31 2016 -0500 | |
# | |
# Copyright (C) 2016 Bengfort.com | |
# For license information, see LICENSE.txt | |
# |
View btrdb_random_walk_generate.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ldaviz.py
This file contains 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
from sklearn.pipeline import Pipeline | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.decomposition import LatentDirichletAllocation | |
from yellowbrick.datasets import load_hobbies | |
class LDAViz(object): | |
""" |
View ybvid.sh
This file contains 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
gource -1280x720 --camera-mode track --seconds-per-day 4 --auto-skip-seconds 1 \ | |
--file-idle-time 0 --key --title "Yellowbrick" -o - | ffmpeg -y -r 60 \ | |
-f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast \ | |
-pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4 |
View dist_extract.py
This file contains 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 | |
import os | |
import glob | |
import argparse | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt |
NewerOlder