Skip to content

Instantly share code, notes, and snippets.

View joyrexus's full-sized avatar

J. Voigt joyrexus

View GitHub Profile
@joyrexus
joyrexus / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block
Convert images to thumbnails

Finds PNG images in the source folder, and saves corresponding thumbnails to the target folder.

Use with gistup to create gists (and blocks) from the command line. The directory containing your gist files gets initialized as a git repo. See this tutorial for a quick overview.

For additional tips on generating block thumbnails, see this HOWTO.

@joyrexus
joyrexus / README.md
Created April 30, 2014 15:46
Merge sort

Merge sort implementations in python and coffeescript.

@joyrexus
joyrexus / README.md
Created May 1, 2014 15:38
RCC resources

Various resources and references for those building data ecosystems.

Vision

@joyrexus
joyrexus / README.md
Created May 5, 2014 15:20
through2-* demo

Another quick demo of through2-map and through2-filter.

Objective

  • create a stream of monotonically increasing integers
  • filter out the even integers
  • show the differences between pairwise odd numbers in stream
@joyrexus
joyrexus / README.md
Last active August 29, 2015 14:01
Leap pinch strength demo

Pinch strength demo with the leap motion skeletal model.

This example shows how "pinch strength" can be detected with decent accuracy by the new skeletal model. Note how the pinching fingers get colored blue as the pinch pose increases in strength.

Pinch strength is supposed to be a measure of "the holding strength of a pinch hand pose." The strength is zero for an open hand, and blends to 1.0 when a pinching hand pose is recognized. Pinching can be done between the thumb and any other finger of the same hand.

Tracking can break down, however, when a user rotates their hand.


@joyrexus
joyrexus / README.md
Created May 9, 2014 16:08
Transcript validation notes

Resources for creating a simple web interface for validating tabular transcript data.

I still see a lot of transcription and coding done in excel, with metadata stored in an info worksheet, transcription and coding in another transcript worksheet. Each row is tied to a timestamped utterance or speech act. So, there are columns for the timestamp and utterance along with additional columns for whatever annotation is needed (e.g., coding for syntax, semantics, gesture, context, etc.)

Anyway, we want to avoid parsing excel files. Let Google Drive / Sheets do this

@joyrexus
joyrexus / README.md
Last active August 29, 2015 14:01 — forked from max-mapper/index.js
Load and render a remote CSV
@joyrexus
joyrexus / README.md
Created May 10, 2014 02:53
Load a file

Load a TSV-file using the File API.

@joyrexus
joyrexus / README.md
Created May 11, 2014 18:24
HTML template

Simple template for a web page.

<!DOCTYPE html>
<meta charset="utf-8">
<style>
  body {
    margin: 40px;
    background: aliceblue;
 }
@joyrexus
joyrexus / README.md
Created May 14, 2014 03:38
A simple quicksort

First pass at a simple (i.e., non-optimal) quicksort function implemented in coffeescript.

Notably, does not sort in-place and is less than optimal in runtime because of its choice of pivot element (viz., the first element).


A very naive version of quicksort might look as follows: