Skip to content

Instantly share code, notes, and snippets.

PuZZleDucK / xorg.conf
Created Jun 11, 2018
Minimal xorg.conf
View xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 42.0 - 52.0
VertRefresh 55.0 - 65.0
Modeline "1024x768" 60.80 1024 1056 1128 1272 768 768 770 796
View gist:2b2eb61a3d4f31535a647a010945ac2f
### Keybase proof
I hereby claim:
* I am puzzleduck on github.
* I am puzzleduck ( on keybase.
* I have a public key ASDFTZ--bIZFXAYH2Ha6P-C-maYIXSGEGS4fhmVISWufhQo
To claim this, I am signing this object:
PuZZleDucK /
Created Jul 23, 2017
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'"
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 "$@"

color in MD files

some This is Blue italic. text

some This is Red Bold. text


+ this will be highlighted in green


  1. First item
echo "code from item 1"
  1. Second item
  2. Third item
  3. Forth
View list-with-nested-code
## original
1. First item
echo "code from item 1"
1. Second item
1. Third item
1. Forth
View asciidoc-toy.asciidoc

Why MarkDown is like vegetables

PuZZleDucK <> v1.0, 2017-12

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

The abstract, preface, appendix, bibliography, glossary and index section titles are significant ('specialsections').


  • Submit resume
  • Ace technical exercise
  • ???
PuZZleDucK /
Created May 27, 2016
Simple Genetic Algorithm Atari simulation for the OpenAI Gym
# Simple Genetic Algorithm Atari simulation
import gym
import numpy as np
import sys
from import buildNetwork
import random
genisis = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
PuZZleDucK /
Created May 21, 2016
Simple random action agent playing qbert
# My first Atari simulation on the AIgym
# Not much happening yet
import gym
episodes = 500
max_time = 10000
env = gym.make('Qbert-v0')