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 lightning-ipython.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mathisonian
mathisonian / matrix.js
Last active Aug 29, 2015
lightning-import-test
View matrix.js
var d3 = require('d3');
var inherits = require('inherits');
var margin = {
top: 20,
right: 20,
bottom: 20,
left: 45
};
View index.html
<!DOCTYPE html>
<head>
<meta charset="utf-8">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var svg = d3.select("body").append("svg")
.attr("width", 960)
.attr("height", 500);
@mathisonian
mathisonian / threejs-example.js
Last active Aug 29, 2015
threejs-lightning-example
View threejs-example.js
// modified from http://oos.moxiecode.com/js_webgl/dna/
var THREE = require('three.js');
var ThreeTest = function(selector, data, images, opts) {
var container;
var camera, scene, renderer, composer;
View particles.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 airlines.xml
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="x" for="node" attr.name="x" attr.type="double"/>
<key id="tooltip" for="node" attr.name="tooltip" attr.type="string"/>
<key id="y" for="node" attr.name="y" attr.type="double"/>
@mathisonian
mathisonian / browser-export.js
Created Nov 9, 2014
exporting client side code
View browser-export.js
// export as a Node module, an AMD module or a global browser variable
if (typeof module !== 'undefined') {
module.exports = myModule;
} else if (typeof define === 'function' && define.amd) {
define(function() {
return myModule;
});
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
View keith.py
from sets import Set
setMap = {
'aele': Set(),
'fscu': Set(),
'mcav': Set(),
'shys': Set()
}
@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;
You can’t perform that action at this time.