Skip to content

Instantly share code, notes, and snippets.

View EvanSimpson's full-sized avatar

Evan Simpson EvanSimpson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am evansimpson on github.
  • I am evansimpson (https://keybase.io/evansimpson) on keybase.
  • I have a public key ASBeNh2YA3w-U39JT2wSoHYGlMVzUsfc4zFEriDvGCbphAo

To claim this, I am signing this object:

Verifying that +esimp is my blockchain ID. https://onename.com/esimp
sequelize.define("Relation",
{ // your columns here
id: {
type: Sequelize.UUID
}
},
{ // additional options
freezeTableName: true
}
);
@EvanSimpson
EvanSimpson / SLACathonCoC.md
Last active August 29, 2015 14:16
Code of Conduct for SLACathon @ Olin College

Code of Conduct

Purpose

At the core of the Olin community is the Honor Code, and the students which define it. While we expect all Olin students present at the event to abide by the Honor Code, we make use of this document to put in place more specific expectations for behavior at the event for all attendees. Our primary goal is to ensure this community is as inclusive to the largest number of people, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, gender identity and expression, sexual orientation, ability, physical appearance, body size, race, age, socioeconomic status, religion (or lack thereof), or other marginalized aspect of attendees.

@EvanSimpson
EvanSimpson / tessel-ibeacon.js
Created August 7, 2014 23:34
Turn your Tessel BLE module into an iBeacon
var tessel = require('tessel');
var bleLib = require('ble-ble113a');
var bleadvertise = require('bleadvertise');
var uuid = 'D9B9EC1F392543D080A91E39D4CEA95C'; // Apple's example UUID
var major = '01';
var minor = '10';
var iBeaconData = new Buffer(uuid+major+minor, 'hex'); // Create data Buffer
@EvanSimpson
EvanSimpson / readMifare1k.js
Created July 1, 2014 00:15
Read the entire contents of a MIFARE Classic 1k card using a Tessel + RFID module.
var tessel = require('tessel');
var rfidLib = require('rfid-pn532');
var rfid = rfidLib.use(tessel.port['A'], { listen: false });
var addr = 0x00;
var auth_key = [0xff,0xff,0xff,0xff,0xff,0xff];
var auth_type = 0;
var cardData = [];
@EvanSimpson
EvanSimpson / bletest.js
Created June 23, 2014 19:22
BLE113a Connection Test for Tessel
var tessel = require('tessel');
var bgLib = require('bglib');
var bglib = new bgLib();
var port = tessel.port['A'];
var resetPin = port.digital[2];
var uart = port.UART({baudrate: 9600});