Skip to content

Instantly share code, notes, and snippets.

View rickhenderson's full-sized avatar

Rick Henderson rickhenderson

View GitHub Profile
@rickhenderson
rickhenderson / mineral_overlay.py
Last active May 6, 2016 15:43
Python script for creating a Minecraft Map to display a mineral overlay for diamonds using Minecraft Overviewer. The code contains hard coded drive locations and map names, so you would have to edit it for your own use.
# mineral_overlay.py
# Display minerals using Mineral overlay using Minecraft Overviewer
# Updated May 6, 2016
outputdir = "c:/maps/devil"
worlds["Devil Land"] = "%appdata%/.minecraft/saves/Devil Land"
# Rendermodes for lighting include: normal, night, smooth_lighting, smooth_night, nether_smooth_lighting
renders["dlday"] = {
'world': "Devil Land",
# mandelbrot_vectorized.R
# Myles Harrison
# http://www.everydayanalytics.ca
# parameters
cols <- colorRampPalette(c("blue","yellow","red","black"))(11)
xmin = -2
xmax = 2
nx = 500
ymin = -1.5
@rickhenderson
rickhenderson / 1-Berzerk-v0-random.md
Last active April 30, 2016 03:26
Berzerk-v0 Random demo Writeup

Using sample() on Berzerk-v0

This experiment was created by using the sample code provided in the docs at https://gym.openai.com/docs and I simply changed the environment to Berzerk-v0 and changed the number of episodes for 100 for proper scoring.

Reproduction

  1. Follow the demo at https://gym.openai.com/docs
  2. Use env = gym.make('Berzerk-v0') for the enviroment
  3. Set the episodes to a minimum of 100.

-OR- Use the code from here:

@rickhenderson
rickhenderson / random-agent-cartpole-v0.md
Last active May 5, 2016 03:31
random-agent-cartpole-v0

Ran random_agent.py from the examples folder in the default gym installation.

@rickhenderson
rickhenderson / random-agent-FrozenLake-v0.md
Created May 5, 2016 02:16
An OpenGym experiment using Random agent and FrozenLake-v0 environment.

Ran the random agent on FrozenLake-v0 with a total of 10000 episodes since there were not enough real results with only 100 episodes.

@rickhenderson
rickhenderson / cem-agent-cartpole-v0.md
Created May 5, 2016 03:03
An OpenGym experiment running the CEM sample on Cartpole-v0.

Run examples/cem.py which uses the Cartpole-v0.

@rickhenderson
rickhenderson / coded-FrozenLake-v0.py
Last active May 5, 2016 03:29
Problem with frozen and random.
# Basic Agent Class from Code samples on OpenGym
# Modified by Rick Henderson
# Modified on May 4, 2016
# May the 4th be with you!
import logging
import os
import gym
@rickhenderson
rickhenderson / astar.py
Last active April 15, 2021 19:47 — forked from jamiees2/astar.py
A* Algorithm implementation in Python3.
"""
A* Algorithm implementation in Python.
Written by: James Sigurðarson (jamiees2)
Source: https://gist.github.com/jamiees2/5531924
Modified by Rick Henderson
May 5, 2016: Began updating to Python 3.x. Also improved spacing and comments.
Converted xrange() to range(). Converted raw_input() to input().
"""

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@rickhenderson
rickhenderson / common-battery-info.md
Last active May 6, 2016 16:10
A collection of battery info for building simple electronic circuits using breadboards or small printed circuit boards. Depending on your level of experience.

Common Battery Info

Battery Type Voltage (V) Capacity (mAh) Chemistry
CR2032 3.0 NA Li-MnO2
AA, AAA 1.5 varies 350 - 1000 Alkaline
AA, AAA 1.2 NiMH or NiCd

Use with LEDs