Skip to content

Instantly share code, notes, and snippets.

View keesterbrugge's full-sized avatar

kees ter brugge keesterbrugge

View GitHub Profile

Blog 2019/7/18

<- previous | index | next ->

"Hello, world" in Clojure compiled with GraalVM running in Docker

Create a new minimal Clojure project using leiningen:

@keesterbrugge
keesterbrugge / wclwn.md
Created April 3, 2017 19:13 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim
@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 / 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 / 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 / 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 / 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 / graph-tool_installation.md
Created May 19, 2016 11:09 — forked from v-pravin/graph-tool_installation.md
Installation of graph-tool from source