Skip to content

Instantly share code, notes, and snippets.

@vlandham
vlandham / part1.md
Last active Jun 19, 2021
Feature Branches and Pull Requests : Walkthrough
View part1.md

Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.

Questions, comments, and suggestions for improvements welcome!

Start with the latest on master

When starting a new feature, I make sure to start with the latest and greatest codebase:

git checkout master
@vlandham
vlandham / Readme.md
Last active Mar 25, 2021
spectrogram
View Readme.md

Interactive Spectrogram in the browser!

Same as example in: https://github.com/vlandham/spectrogramJS - but in blocks.

Click 'analyze' to play the sound and create spectrogram.

Uses web audio api.

Also uses D3 with canvas to display the main visualization.

View 1984.txt
It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him.
The hallway smelt of boiled cabbage and old rag mats. At one end of it a coloured poster, too large for indoor display, had been tacked to the wall. It depicted simply an enormous face, more than a metre wide: the face of a man of about forty-five, with a heavy black moustache and ruggedly handsome features. Winston made for the stairs. It was no use trying the lift. Even at the best of times it was seldom working, and at present the electric current was cut off during daylight hours. It was part of the economy drive in preparation for Hate Week. The flat was seven flights up, and Winston, who was thirty-nine and had a varicose ulcer above his right ankle, went slowly, resting several times on the way.
@vlandham
vlandham / geojson_display.coffee
Created Feb 11, 2015
display geojson with d3
View geojson_display.coffee
$ ->
width = 900
height = 900
projection = d3.geo.albersUsa().scale(1).translate([0,0])
path = d3.geo.path().projection(projection)
vis = d3.select("#vis")
.append("svg")
.attr("width", width)
@vlandham
vlandham / README.md
Last active Sep 30, 2019 — forked from awoodruff/README.md
Head Projections Remix
View README.md

A quick hack on the beautifully executed projection example from Andy Woodruff. I just wanted to see them all on one screen.

Click the Open in new window button to see them all.

Novel code Inspired once again by Jason Davies.

Andy's original text:

We've all seen the projected head from Elements of map projection with applications to map and chart construction, but the authors in 1921 did not have D3 to help them show a full range of weird distorted faces. This is based on the Map Projection Transitions example by Jason Davies.

@vlandham
vlandham / README.md
Created May 29, 2017
regl dots as circles
View README.md
View historic_denominations.json
[{"name":"the united states",
"id":1,
"size":"big",
"known":90,
"churches":[
{"name":"me","percent":29.65},
{"name":"bap","percent":21.03},
{"name":"pres","percent":12.41},
{"name":"cat","percent":10.0},
{"name":"con","percent":5.17},
@vlandham
vlandham / vis.coffee
Created Apr 12, 2013
attempt to grow and shrink bubbles on mouse over not a very good solution - but it works
View vis.coffee
root = exports ? this
Bubbles = () ->
# standard variables accessible to
# the rest of the functions inside Bubbles
width = 900
height = 510
data = []
node = null
@vlandham
vlandham / README.md
Last active Sep 25, 2017
regl dots basic
View README.md
View parse_interviews.rb
#!/usr/bin/env ruby
require 'yaml'
require 'json'
input_dirname = ARGV[0]
output_filename = "parsed_interviews.json"
class Categorizer
HW_CATEGORIES = [[/.*dell.*/, ["pc","system"]],