Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Brevig AlexanderBrevig

View GitHub Profile
View chroot-to-pi.sh
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@AlexanderBrevig
AlexanderBrevig / snake.py
Last active Nov 2, 2017 — forked from sanchitgangwar/snake.py
Snakes Game using Python
View snake.py
# SNAKES GAME FOR WINDOWS
# Be sure to download http://gnuwin32.sourceforge.net/downlinks/pdcurses-bin-zip.php
# I add the pdcurses.dll to the project folder and off you go!
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import unicurses
from unicurses import *
from random import randint