Skip to content

Instantly share code, notes, and snippets.

View jonasschneider's full-sized avatar

Jonas Schneider jonasschneider

View GitHub Profile
import numpy
from numpy import argsort, mean, std
def sample_norm(mu, sigma):
return numpy.random.normal(loc=mu, scale=sigma)
def sample_norm_vec(mu, sigma, len):
return [sample_norm(mu, sigma) for i in range(0, len)]
def cem(f, mu0, sigma0, n_iter, n_samples, p_elite, noise_amount):
@jonasschneider
jonasschneider / Dockerfile
Last active April 10, 2016 14:42
docker-compose bug test case
FROM ubuntu:14.04
2016/04/17 23:15:46 [INFO] Terraform version: 0.6.14
2016/04/17 23:15:46 [DEBUG] Detected home directory from env var: /Users/jonas
2016/04/17 23:15:46 [DEBUG] Discovered plugin: atlas = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-atlas
2016/04/17 23:15:46 [DEBUG] Discovered plugin: aws = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-aws
2016/04/17 23:15:46 [DEBUG] Discovered plugin: azure = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-azure
2016/04/17 23:15:46 [DEBUG] Discovered plugin: azurerm = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-azurerm
2016/04/17 23:15:46 [DEBUG] Discovered plugin: chef = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-chef
2016/04/17 23:15:46 [DEBUG] Discovered plugin: clc = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-clc
2016/04/17 23:15:46 [DEBUG] Discovered plugin: cloudflare = /usr/local/Cellar/terraform/0.6.14/bin/terraform-provider-cloudflare
2016/04/17 23:15:46 [DEBUG] Discovered plugin: clouds

pachi_py

Python wrappers for a slightly modified version of Pachi 11.00.

TRPO

My thing

$ tar tvf dist/pachi-py-0.0.9.tar.gz
drwxr-xr-x 0 jonas staff 0 Apr 22 00:00 pachi-py-0.0.9/
-rw-r--r-- 0 jonas staff 1037 Apr 21 20:04 pachi-py-0.0.9/.gitignore
-rw-r--r-- 0 jonas staff 986 Apr 21 21:49 pachi-py-0.0.9/.travis.yml
-rw-r--r-- 0 jonas staff 17992 Apr 21 20:04 pachi-py-0.0.9/COPYING
-rw-r--r-- 0 jonas staff 29 Apr 21 23:53 pachi-py-0.0.9/MANIFEST.in
drwxr-xr-x 0 jonas staff 0 Apr 22 00:00 pachi-py-0.0.9/pachi_py/
-rw-r--r-- 0 jonas staff 23 Apr 21 20:35 pachi-py-0.0.9/pachi_py/__init__.py
-rw-r--r-- 0 jonas staff 145 Apr 21 21:41 pachi-py-0.0.9/pachi_py/__init__.pyc
-rw-r--r-- 0 jonas staff 523339 Apr 21 20:14 pachi-py-0.0.9/pachi_py/cypachi.cpp
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 0. , 0. , 0. ],
#!/bin/sh
# ----------------------------------------------------------------------
# Copyright (C) 2005-2011 Karl J. Runge <[email protected]>
# All rights reserved.
#
# This file is part of Xdummy.
#
# Xdummy is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at