Skip to content

Instantly share code, notes, and snippets.

View richstoner's full-sized avatar
💭
🚀

Rich Stoner richstoner

💭
🚀
View GitHub Profile
@richstoner
richstoner / test.py
Created February 14, 2013 00:16
Test notebook gist
{
"metadata": {
"name": "Collecting tissues"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@richstoner
richstoner / gist:4954666
Created February 14, 2013 17:52
callbacks
{
"metadata": {
"name": "Z Callbacks"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@richstoner
richstoner / parcoords.ipnb
Created February 16, 2013 19:32
Example notebook to demonstrate javascript functionality
{
"metadata": {
"name": "parcoords"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@richstoner
richstoner / full_parse_nb.ipynb
Created March 6, 2013 07:13
Guidelines parsing example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
@richstoner
richstoner / aperiotilesource.js
Last active December 21, 2015 15:58
This shows the code snippets of the difference between openseadragon annotations and leaflet. Original code: preleaf.js, aperiotilesource.js, load_openseadragon.js New leaflet code: postleaf.js, connectivity_layer.js, load_leaflet.js
// hacked together aperio support
(function( $ ){
/**
* A client implementation of the Aperio ImageServer Format
*
* @class
* @extends OpenSeadragon.TileSource
* @param {Number|Object} width - the pixel width of the image or the idiomatic
@richstoner
richstoner / gist:6894968
Created October 9, 2013 01:59
cmake command to build opencv on osx
cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ -D CMAKE_C_COMPILER=/usr/bin/gcc -D WITH_CUDA=ON ..
@richstoner
richstoner / fabfile.py
Created October 13, 2013 16:52
Files needed for an ipython notebook install remotely.
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.console import confirm
from fabric.contrib.files import exists
from datetime import datetime
import sys, pprint, time, ConfigParser
from ConfigParser import SafeConfigParser
parser = SafeConfigParser()
@richstoner
richstoner / poster.ipynb
Last active December 27, 2015 19:29
SFN 2013 poster footage
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@richstoner
richstoner / armarker_detector.py
Created November 20, 2013 21:11
ar_detector.py
import cv2
import numpy as np
from gl_utils import draw_gl_polyline,adjust_gl_view,clear_gl_screen,draw_gl_point
from methods import normalize
import atb
import audio
from ctypes import c_int,c_bool
import OpenGL.GL as gl
from OpenGL.GLU import gluOrtho2D