Skip to content

Instantly share code, notes, and snippets.

@PuZZleDucK
PuZZleDucK / atari-2.py
Created May 21, 2016 04:40
My first Atari simulation with simple summary of results
#!/usr/bin/python
# My first Atari simulation on the AIgym
# Not much happening yet
import gym
env = gym.make('MsPacman-v0')
print env.action_space
print env.observation_space
@PuZZleDucK
PuZZleDucK / atari-4-qbert.py
Created May 21, 2016 07:59
Simple random action agent playing qbert
#!/usr/bin/python
# My first Atari simulation on the AIgym
# Not much happening yet
import gym
episodes = 500
max_time = 10000
env = gym.make('Qbert-v0')
@PuZZleDucK
PuZZleDucK / atari-7-genetic.py
Created May 27, 2016 18:33
Simple Genetic Algorithm Atari simulation for the OpenAI Gym
#!/usr/bin/python
# Simple Genetic Algorithm Atari simulation
import gym
import numpy as np
import sys
from pybrain.tools.shortcuts import buildNetwork
import random
genisis = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
@PuZZleDucK
PuZZleDucK / gist-toys.md
Created July 16, 2017 12:28
Gist plaything

To-do

  • Submit resume
  • Ace technical exercise
  • ???
@PuZZleDucK
PuZZleDucK / asciidoc-toy.asciidoc
Last active July 16, 2017 13:02
asciidoc test

Why MarkDown is like vegetables

PuZZleDucK <PuZZleDucK@gmail.com> v1.0, 2017-12

This is the optional preamble (an untitled section body). Useful for writing simple sectionless documents consisting only of a preamble.

Note
The abstract, preface, appendix, bibliography, glossary and index section titles are significant ('specialsections').
## original
1. First item
```
echo "code from item 1"
```
1. Second item
1. Third item
1. Forth

original

  1. First item
echo "code from item 1"
  1. Second item
  2. Third item
  3. Forth

color in MD files

some This is Blue italic. text

some This is Red Bold. text

Text

+ this will be highlighted in green
@PuZZleDucK
PuZZleDucK / local-linguist.sh
Created July 23, 2017 05:00
Script to wrap the `linguist` command so it can be used on non-repositories
echo "Local Linguist (linguist for non repos)"
if git status 2> /dev/null > /dev/null; then
echo "!!! This directory is already a git repository... please use the 'linguist' command instead"
echo "!!! If this command exits unclean it will leave a git repository behind"
echo "!!! You can remove the git repository by running 'rm -Rf .git'"
else
git init 2> /dev/null > /dev/null
git add --all 2> /dev/null > /dev/null
git commit -m "local linguist auto commit" 2> /dev/null > /dev/null
linguist "$@"
### Keybase proof
I hereby claim:
* I am puzzleduck on github.
* I am puzzleduck (https://keybase.io/puzzleduck) on keybase.
* I have a public key ASDFTZ--bIZFXAYH2Ha6P-C-maYIXSGEGS4fhmVISWufhQo
To claim this, I am signing this object: