Skip to content

Instantly share code, notes, and snippets.

View stravant's full-sized avatar

Mark Langen stravant

  • Roblox
  • Bay Area
View GitHub Profile
@stravant
stravant / tetris.cpp
Created October 11, 2012 16:48
Arduino Tetris
#define cs 6
#define dc 7
#define rst 8 // you can also connect this to the Arduino reset
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>
Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst);
@stravant
stravant / main.cpp
Created September 20, 2012 16:00
Ardiuno Comm
//maps pin => interrput number
const int INTMAP[] = {-1, -1, 0, 1, -1, -1};
const int COM_SendPin = 2;
const int COM_RecPin = 3;
const int COM_Timing = 6;
const int COM_HalfTiming = 3;
void COM_send(uint8_t b) {
@stravant
stravant / main.cpp
Created September 18, 2012 16:24
Ardiuno Encrypt
delay(100);
randomSeed(micros());
int generator = 0;
int primmod = 0;
int priv_key = random(1000,10000);
void setup() {
@stravant
stravant / Indent.tmPreferences
Created August 11, 2012 06:12
Roblox Lua completion support for SublimeText
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Indent</string>
<key>scope</key>
<string>source.lua</string>
<key>settings</key>
<dict>