Skip to content

Instantly share code, notes, and snippets.

View woodRock's full-sized avatar
🫖
Activate zen mode (CTRL + K, Z)

Jesse Wood woodRock

🫖
Activate zen mode (CTRL + K, Z)
View GitHub Profile
@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
@ihincks
ihincks / init.coffee
Last active February 20, 2020 11:42
Some Latex shortcuts for Atom
# mimics the ctrl+shift+m behaviour in texmaker
atom.commands.add 'atom-text-editor',
'custom:insert-inline-latex-eqn': ->
return unless editor = atom.workspace.getActiveTextEditor()
selection = editor.getLastSelection()
selection.insertText("$#{selection.getText()}$")
if not editor.getSelectedText()
editor.moveLeft()
# puts selected text in a new align environment
@zippy731
zippy731 / gist:fe62c6f2ca568c95cc9e5e5ddba1fd8e
Created August 26, 2022 04:58
settings for stablediffusion sidescroll demo
{
"batch_name": "StableFun",
"outdir": "/content/drive/MyDrive/AI/StableDiffusion/2022-08/StableFun/",
"save_grid": false,
"save_settings": true,
"save_samples": true,
"display_samples": true,
"n_samples": 1,
"W": 768,
"H": 512,
@altryne
altryne / settings.txt
Created August 26, 2022 08:28
Settings for the studio Ghibli Animation
20220826082208_settings.txt
Who has access
Not shared
System properties
Type
Text
Size
2 KB
Storage used
2 KB