Skip to content

Instantly share code, notes, and snippets.

@jonlabelle
jonlabelle / beyond_compare.md
Last active October 25, 2024 03:51
Use Beyond Compare with Git

Use Beyond Compare with Git

Install command line tools

You can install the command line tools from the File menu, Install command line tools.

  • /usr/local/bin/bcomp: Launches comparison and waits for it to complete.
  • /usr/local/bin/bcompare: Launches comparison and returns immediately.

Git config

@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
@Belgand
Belgand / gist:2856947
Created June 2, 2012 06:18 — forked from hileon/gist:1311735
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing