Skip to content

Instantly share code, notes, and snippets.

Matthew Conlen mathisonian

Block or report user

Report or block mathisonian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
'use strict';
var d3 = require('d3');
require('d3-multiaxis-zoom')(d3);
var _ = require('lodash');
var utils = require('lightning-client-utils');
var TooltipPlugin = require('d3-tip');
TooltipPlugin(d3);
var margin = {
@mathisonian
mathisonian / index.js
Last active Aug 29, 2015
requirebin sketch
View index.js
var Lightning = require('lightning.js');
var lightning = new Lightning({
host: 'https://stark-savannah-2372.herokuapp.com'
});
var arr = [];
for (var i = 0, l = 40; i < l; i++) {
arr.push(Math.random());
}
@mathisonian
mathisonian / index.js
Last active Aug 29, 2015
requirebin sketch
View index.js
var Lightning = require('lightning.js');
var lightning = new Lightning({
host: 'https://stark-savannah-2372.herokuapp.com'
});
var arr = [];
for (var i = 0, l = 40; i < l; i++) {
arr.push(Math.random());
}
View gist:db49063f901cb7afe6a0
[
{
source_url: "URL", // github url
algorithm_name: "STRING", // maybe unnecessary
avatar: "URL", // get the avatar from github
metrics: [{ // an array of perfomance metrics. each test has a name and a score
name: "test_name",
type: "data type", // series, histogram, singleton, etc
value: "test_value"
}],
View gist:4972e8a98ef0e1aec09e
const int leftButtonPin = 2; // the number of the pushbutton pin
int leftButtonState = 0, lastLeftButtonState = 0; // variable for reading the pushbutton status
const int rightButtonPin = 3; // the number of the pushbutton pin
int rightButtonState = 0, lastRightButtonState = 0; // variable for reading the pushbutton status
const int analogInPinRightP1 = A5;
const int analogInPinLeftP1 = A4;// Analog input pin that the potentiometer is attached to
int sensorValueRightP1 = 0;
int sensorValueLeftP1 = 0;// value read from the pot
View gist:126cb668108c004bedc9
// Map led strips to their pixel values.
// e.g. ledStripRanges[0][1] is the
// pixel range for the bottom strip
// on the right side.
int ledStripRanges[19][2][2] = {
{
{900, 1018}, {600, 715}
},{
{1018, 1135}, {715, 828}
View gist:cbb9af2403f40e8b6945
int ledStripRanges[19][2][2] = {
{
{900, 1018}, {600, 715}
},{
{1018, 1135}, {715, 828}
},{
{1135, 1200}, {828, 900}
},{
@mathisonian
mathisonian / index.js
Last active Aug 29, 2015
point-cloud
View index.js
var THREE = require('three.js');
var _ = require('lodash');
var ParticleTest = function(selector, data, images, opts) {
var width = $(selector).width();
var height = width * 0.7;
View keith.py
from sets import Set
setMap = {
'aele': Set(),
'fscu': Set(),
'mcav': Set(),
'shys': Set()
}
View index.js
var d3 = require('d3');
var _ = require('lodash');
var utils = require('lightning-client-utils');
var simplify = require('simplify-js');
var margin = {
top: 40,
right: 10,
bottom: 20,
left: 10
You can’t perform that action at this time.