Skip to content

Instantly share code, notes, and snippets.

View mathisonian's full-sized avatar

Matthew Conlen mathisonian

View GitHub Profile
@mathisonian
mathisonian / gist:76057519c67d48f6b0fd
Created May 4, 2015 03:43
map emoji names to their codes
{"100":"1F4AF","1234":"1F522","copyright":"00A9","registered":"00AE","bangbang":"203C","interrobang":"2049","tm":"2122","information_source":"2139","left_right_arrow":"2194","arrow_up_down":"2195","arrow_upper_left":"2196","arrow_upper_right":"2197","arrow_lower_right":"2198","arrow_lower_left":"2199","leftwards_arrow_with_hook":"21A9","arrow_right_hook":"21AA","watch":"231A","hourglass":"231B","fast_forward":"23E9","rewind":"23EA","arrow_double_up":"23EB","arrow_double_down":"23EC","alarm_clock":"23F0","hourglass_flowing_sand":"23F3","m":"24C2","black_small_square":"25AA","white_small_square":"25AB","arrow_forward":"25B6","arrow_backward":"25C0","white_medium_square":"25FB","black_medium_square":"25FC","white_medium_small_square":"25FD","black_medium_small_square":"25FE","sunny":"2600","cloud":"2601","phone":"260E","telephone":"260E","ballot_box_with_check":"2611","umbrella":"2614","coffee":"2615","point_up":"261D","relaxed":"263A","aries":"2648","taurus":"2649","gemini":"264A","cancer":"264B","leo":"264C","
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>JavaScript Non-Form CurseMonger</TITLE>
<META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (Win95; I) [Netscape]">
<SCRIPT LANGUAGE="JavaScript">
<!--Hide JavaScript from Java-Impaired Browsers
isn1="*00Your mouth spews*01You are*02Your mother wears*03Your"
+" Father is*04Your Eleventh Child will be*05Your Mate"
+"rnal Ancestors are*06Your Personal Trainer is*07Your spouse "
'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 August 29, 2015 14:19
requirebin sketch
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 August 29, 2015 14:19
requirebin sketch
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 / gist:db49063f901cb7afe6a0
Last active August 29, 2015 14:18
Neurofinder JSON spec
[
{
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"
}],
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
// 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}
int ledStripRanges[19][2][2] = {
{
{900, 1018}, {600, 715}
},{
{1018, 1135}, {715, 828}
},{
{1135, 1200}, {828, 900}
},{
@mathisonian
mathisonian / index.js
Last active August 29, 2015 14:10
point-cloud
var THREE = require('three.js');
var _ = require('lodash');
var ParticleTest = function(selector, data, images, opts) {
var width = $(selector).width();
var height = width * 0.7;