Skip to content

Instantly share code, notes, and snippets.

View johannah's full-sized avatar

Johanna Hansen johannah

View GitHub Profile
@kastnerkyle
kastnerkyle / better_mcts.py
Last active April 13, 2019 22:58
A "better" mcts impl
# Author: Kyle Kastner
# License: BSD 3-Clause
# http://mcts.ai/pubs/mcts-survey-master.pdf
# See similar implementation here
# https://github.com/junxiaosong/AlphaZero_Gomoku
# changes from high level pseudo-code in survey
# expand all children, but only rollout one
# section biases to unexplored nodes, so the children with no rollout
# will be explored quickly
@mitmul
mitmul / ros_raspbian.sh
Created December 5, 2014 21:26
Prepare ROS libraries and anaconda environment for raspberry-pi
# install miniconda
cd
wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-armv6l.sh
md5sum Miniconda-3.5.5-Linux-armv6l.sh
bash Miniconda-3.5.5-Linux-armv6l.sh -b
rm -rf Miniconda-3.5.5-Linux-armv6l.sh
echo 'export PATH=/home/pi/miniconda/bin:$PATH' >> .bashrc
source .bashrc
conda install pip --yes
conda install ipython --yes
@cavedave
cavedave / wheatClor.py
Last active December 28, 2015 08:19
This is Python code to create a map of wheat producing counties int he US
import csv
from bs4 import BeautifulSoup
# Read in wheat production -----
wheat = {}
reader = csv.reader(open('aw98.csv'), delimiter=",")
#file has four lines of headers
next(reader, None)
next(reader, None)
next(reader, None)
@urschrei
urschrei / basemap_descartes.py
Last active November 6, 2020 02:49
How to plot Shapely Points using Matplotlib, Basemap, and Descartes
"""
required packages:
numpy
matplotlib
basemap: http://matplotlib.org/basemap/users/installing.html
shapely: https://pypi.python.org/pypi/Shapely
descartes: https://pypi.python.org/pypi/descartes
random