Skip to content

Instantly share code, notes, and snippets.

View keesterbrugge's full-sized avatar

kees ter brugge keesterbrugge

View GitHub Profile
@keesterbrugge
keesterbrugge / graph-tool_installation.md
Created May 19, 2016 11:09 — forked from v-pravin/graph-tool_installation.md
Installation of graph-tool from source
@keesterbrugge
keesterbrugge / graph-tool-ubuntu.md
Created May 20, 2016 08:33 — forked from nlap/graph-tool-ubuntu.md
graph-tool on Ubuntu 14.04

graph-tool on Ubuntu 14.04

New: See ansible-role-graph-tool for an automated way to install graph-tool and dependencies on many Ubuntu/Debian distros with Ansible

Here are the steps to install graph-tool on Ubuntu 14.04, including all the prerequisites:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
@keesterbrugge
keesterbrugge / pg-pong.py
Created June 10, 2016 16:35 — forked from karpathy/pg-pong.py
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
@keesterbrugge
keesterbrugge / CATCH_Keras_RL.md
Created July 3, 2016 15:10 — forked from EderSantana/CATCH_Keras_RL.md
Keras plays catch - a single file Reinforcement Learning example
@keesterbrugge
keesterbrugge / auto-deploy.md
Last active August 4, 2016 09:49 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@keesterbrugge
keesterbrugge / ubuntu.sh
Created October 12, 2016 07:30 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
@keesterbrugge
keesterbrugge / wclwn.md
Created April 3, 2017 19:13 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keesterbrugge
keesterbrugge / git_export_all_file_versions
Created June 12, 2019 12:27
script to query git for all previous versions of file
#!/bin/bash
# we'll write all git versions of the file to this folder:
EXPORT_TO=/tmp/all_versions_exported
# take relative path to the file to inspect
GIT_PATH_TO_FILE=$1
# ---------------- don't edit below this line --------------
@keesterbrugge
keesterbrugge / gist:c45868bee7d7ba76fb4503a72e7baf5b
Created July 25, 2019 07:59
datomic entity resolution exploration
(def db-uri "datomic:mem://minimal-example")
(d/create-database db-uri)
(def conn (d/connect db-uri))
(def schema
[ {:db/ident :day
:db/unique :db.unique/identity
:db/valueType :db.type/long