Skip to content

Instantly share code, notes, and snippets.

@PuZZleDucK
PuZZleDucK / atari-2.py
Created May 21, 2016
My first Atari simulation with simple summary of results
View atari-2.py
#!/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
Simple random action agent playing qbert
View atari-4-qbert.py
#!/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
Simple Genetic Algorithm Atari simulation for the OpenAI Gym
View atari-7-genetic.py
#!/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"
View gist-toys.md

To-do

  • Submit resume
  • Ace technical exercise
  • ???
View asciidoc-toy.asciidoc

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').
View list-with-nested-code
## original
1. First item
```
echo "code from item 1"
```
1. Second item
1. Third item
1. Forth
View list-with-nested-code.md

original

  1. First item
echo "code from item 1"
  1. Second item
  2. Third item
  3. Forth
View color-test.md

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 Jul 23, 2017
Script to wrap the `linguist` command so it can be used on non-repositories
View local-linguist.sh
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 "$@"
View gist:2b2eb61a3d4f31535a647a010945ac2f
### 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: