Skip to content

Instantly share code, notes, and snippets.

View PeterSulcs's full-sized avatar
🚀
To the moon

Peter Sulcs PeterSulcs

🚀
To the moon
  • Greater Seattle Area, WA
View GitHub Profile
@EveningShen
EveningShen / llnn.py
Last active August 12, 2018 17:39
Lunar Lander Neural Network
import gym
from gym.wrappers import Monitor
import itertools
import numpy as np
import os
import random
import sys
import tensorflow as tf
from collections import deque
@minrk
minrk / nbstripout
Last active June 6, 2023 06:23
git pre-commit hook for stripping output from IPython notebooks
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
LICENSE: Public Domain