Skip to content

Instantly share code, notes, and snippets.

@PuZZleDucK
PuZZleDucK / xorg.conf
Created June 11, 2018 01:33
Minimal xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection
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
### 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:
@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 "$@"

color in MD files

some This is Blue italic. text

some This is Red Bold. text

Text

+ this will be highlighted in green

original

  1. First item
echo "code from item 1"
  1. Second item
  2. Third item
  3. Forth
## original
1. First item
```
echo "code from item 1"
```
1. Second item
1. Third item
1. Forth
@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').
@PuZZleDucK
PuZZleDucK / gist-toys.md
Created July 16, 2017 12:28
Gist plaything

To-do

  • Submit resume
  • Ace technical exercise
  • ???
@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 / 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')