Skip to content

Instantly share code, notes, and snippets.

Avatar

kbd kode kbdkode

View GitHub Profile
@kbdkode
kbdkode / chess.sh
Created Oct 5, 2016
bash chess (partial)
View chess.sh
#!/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 Oct 1, 2016
Think you can win the lottery? Guess again.
View lottery.py
#! /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