Skip to content

Instantly share code, notes, and snippets.

View ppkn's full-sized avatar
🦥

Daniel Pipkin ppkn

🦥
View GitHub Profile
@ppkn
ppkn / zeldaneat.lua
Created December 10, 2022 19:22
Main script for NEAT Zelda reinforcement learning project.
-- ZeldAI by dpipkin
-- Feel free to use this code, but please do not redistribute it.
-- Borrowed heavily from MarI/O by SethBling
-- Intended for use with the BizHawk emulator and The Legend of Zelda (NES)
-- Make sure you have a save state on the overworld opening scene named
-- "zelda0.state" and put a copy in both the Lua folder and the root directory
-- of BizHawk
Filename = "zelda0.state"
ButtonNames = {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" rel="stylesheet">
<title>Interactive Transcripts</title>
@ppkn
ppkn / keybase.md
Last active February 22, 2019 15:30

Keybase proof

I hereby claim:

  • I am ppkn on github.
  • I am ppkn (https://keybase.io/ppkn) on keybase.
  • I have a public key ASBA_sNzkOi3LRuCRy3mkRrNZLKtPqEV186dyByYi3GHyQo

To claim this, I am signing this object:

@ppkn
ppkn / baseball_data.csv
Last active April 19, 2018 11:35
Second Draft of Data Visualization
name handedness height weight avg HR
Tom Brown R 73 170 0.0 0
Denny Lemaster R 73 182 0.130 4
Joe Nolan L 71 175 0.263 27
Denny Doyle L 69 175 0.250 16
Jose Cardenal R 70 150 0.275 138
Mike Ryan R 74 205 0.193 28
Fritz Peterson B 72 185 0.159 2
Dick Bertell R 72 200 0.250 10
Rod Kanehl R 73 180 0.241 6
@ppkn
ppkn / baseball_data.csv
Last active April 12, 2018 13:55
First Draft of Data viz
Tom Brown R 73 170 0.0 0
Denny Lemaster R 73 182 0.130 4
Joe Nolan L 71 175 0.263 27
Denny Doyle L 69 175 0.250 16
Jose Cardenal R 70 150 0.275 138
Mike Ryan R 74 205 0.193 28
Fritz Peterson B 72 185 0.159 2
Dick Bertell R 72 200 0.250 10
Rod Kanehl R 73 180 0.241 6
@ppkn
ppkn / full_trace
Created April 7, 2018 13:24
retro contest docker woes
Traceback (most recent call last):
File "C:\Users\Daniel\Miniconda2\envs\contest\lib\site-packages\docker\api\client.py", line 225, in _raise_for_status
response.raise_for_status()
File "C:\Users\Daniel\Miniconda2\envs\contest\lib\site-packages\requests\models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://192.168.99.100:2376/v1.35/containers/create
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
@ppkn
ppkn / elasticsearch_woes.txt
Last active February 23, 2018 02:11
elasticsearch error
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ubuntu/spark/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ubuntu/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
@ppkn
ppkn / SVM.ipynb
Created June 6, 2015 02:58
SVM demo (stolen generously from http://rahular.com/digit-recognition/)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ppkn
ppkn / index.html
Last active August 29, 2015 14:19
Beginning D3 demo
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var width = 1400,
height = 500;
@ppkn
ppkn / degree_report.html
Created April 7, 2015 14:43
donut chart directive
<div layout="row" id="degree-report">
<div flex="75" class="main-report md-whiteframe-z1">
<h4>Graduation Plan Audit Report</h4>
<span class="degree-title">Business Management - General Business Emphasis, B.S.</span>
<span class="degree-credits">120.0 Cr</span>
<div class="semester-table">
<div class="semester-header" layout="row">
<span flex class="pass-fail">PASS</span>