Skip to content

Instantly share code, notes, and snippets.

View marten's full-sized avatar

Marten Veldthuis marten

View GitHub Profile
@marten
marten / data.rb
Last active October 26, 2017 17:11
Timelapse code (Processing.org and Ruby) for AutumnWatch 2017
require 'csv'
require 'active_support/all'
require 'json'
require 'pry'
output = []
puts "Loading subject info"
subjects = CSV.read("subjects.csv", headers: true)
subjects = subjects.map {|row|
uuid location:1 location:2 metadata:size metadata:cuteness
1 https://placekitten.com/200/300.jpg https://placekitten.com/200/100.jpg small cute
2 https://placekitten.com/400/900.jpg https://placekitten.com/500/100.jpg large cute
@marten
marten / README.md
Last active January 29, 2019 17:22
SCRIPT-8
@marten
marten / README.md
Last active January 29, 2019 17:43
SCRIPT-8