Skip to content

Instantly share code, notes, and snippets.

View uglyboxer's full-sized avatar

Cole Howard uglyboxer

  • Digits
  • Portland, OR
View GitHub Profile
@uglyboxer
uglyboxer / seed_everything.py
Last active October 20, 2021 20:08
Seed Everything
import os
import random
import tensorflow as tf
def seed_everything(seed=1234):
random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
tf.random.set_seed(seed)
@uglyboxer
uglyboxer / .pre-commit-config.yaml
Created June 24, 2021 21:29
Example precommit configuration.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
@uglyboxer
uglyboxer / gist:a478523547d1653ac9fa39deb82d7e3b
Created March 31, 2018 01:44
AWS Jupyter Notebook Port Opening
ssh -i <login creds> -L 8157:127.0.0.1:8888 ubuntu@<aws public ip>
@uglyboxer
uglyboxer / README.md
Created May 30, 2016 00:08 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage