Skip to content

Instantly share code, notes, and snippets.

View shoffing's full-sized avatar
🛒
get it? it's a "shoffing cart"

shoffing

🛒
get it? it's a "shoffing cart"
View GitHub Profile
local turnLeft = false
function Update()
-- Store our angular velocity in a variable to make it easier to use
local angVel = gyro:AngVel()
if ranger:Range() > 0 then
-- We see another ship, stop spinning, start ramming,
-- and remember which way to turn if we lose it again
{
"name": "(TODO) Simple Ship Mk I",
"parts": [
{
"type": "brain",
"pos": [0,0]
},
{
"type": "hull",
"pos": [-1,0],
<head>
<title>PropSlam Mumble Counter</title>
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<style>
body {
font-family: 'Inconsolata', sans-serif;
@shoffing
shoffing / L3G4200D.ino
Created February 19, 2014 01:40
Source code for working with the L3G4200D using Arduino and Processing
#include <Wire.h>
#define CTRL_REG1 0x20
#define CTRL_REG2 0x21
#define CTRL_REG3 0x22
#define CTRL_REG4 0x23
#define CTRL_REG5 0x24
// I2C address of the L3G4200D.
// Use I2C scanner to find this value!