Skip to content

Instantly share code, notes, and snippets.

View kbdkode's full-sized avatar

kbd kode kbdkode

View GitHub Profile
@kbdkode
kbdkode / chess.sh
Created October 5, 2016 20:01
bash chess (partial)
#!/bin/bash
trap restore_cursor_exit INT
function restore_cursor_exit {
printf '\e[?25h\n'
exit 0
}
printf '\e[?25l'
color_clear=$'\e[0m'
@kbdkode
kbdkode / lottery.py
Created October 1, 2016 04:00
Think you can win the lottery? Guess again.
#! /usr/bin/env python2
__author__ = "kbdkode"
# View the rules of Mega Millions at http://www.megamillions.com/how-to-play
# Look at their graphs to see how much money you could lose yet make yourself
# feel like your winning with small prizes