Skip to content

Instantly share code, notes, and snippets.

View kasperschnack's full-sized avatar

kasperschnack

  • 14:50 (UTC +02:00)
View GitHub Profile
@tap52384
tap52384 / readme.md
Last active January 10, 2023 23:38
Bootcamp via Virtualbox 5.2 on macOS Mojave
@karpathy
karpathy / pg-pong.py
Created May 30, 2016 22:50
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
@sloria
sloria / bobp-python.md
Last active May 9, 2024 01:42
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: