Skip to content

Instantly share code, notes, and snippets.

View drewcassidy's full-sized avatar

Andrew Cassidy drewcassidy

View GitHub Profile
@drewcassidy
drewcassidy / gist:6143473
Created August 2, 2013 21:08
Traceback (most recent call last): File "simon.py", line 44, in <module> main() File "simon.py", line 43, in main level() File "simon.py", line 31, in level levelgen() File "simon.py", line 28, in levelgen levelNum += 1 UnboundLocalError: local variable 'levelNum' referenced before assignment
import RPi.GPIO as GPIO
import random
import time
levelNum = 0
#global levelNum
GPIO.setmode(GPIO.BOARD)
GPIO.setup(21, GPIO.IN)
import RPi.GPIO as GPIO
import random
import time
import sys
#global levelNum
GPIO.setmode(GPIO.BOARD)
GPIO.setup(21, GPIO.IN)
@drewcassidy
drewcassidy / helloworld.sh
Last active August 29, 2015 13:56
helloworld
echo "Hello World!"
@drewcassidy
drewcassidy / blah1
Created February 27, 2014 01:42
discription
blah111
@drewcassidy
drewcassidy / config.cson
Last active August 29, 2015 13:56
My own Atom config files
'editor':
'fontSize': 12
'showIndentGuide': true
'preferredLineLength': 140
'tabLength': 4
'core':
'themes': [
'atom-flat-ui'
'monokai-flat'
]
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
filetype plugin indent on " required
"
" Brief help
@drewcassidy
drewcassidy / SQL_Dump.sql
Last active August 29, 2015 13:57
Elements for Voxelgon
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: localhost (MySQL 5.6.16)
# Database: Voxelgon
# Generation Time: 2014-03-17 00:24:44 +0000
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.IO;
using LitJson;
namespace Voxelgon{
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: localhost (MySQL 5.6.16)
# Database: Voxelgon
# Generation Time: 2014-03-17 05:27:01 +0000
@drewcassidy
drewcassidy / Schema.sql
Last active August 29, 2015 13:57
Voxelgon SQL schema
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: localhost (MySQL 5.6.16)
# Database: test
# Generation Time: 2014-03-18 01:41:34 +0000