Skip to content

Instantly share code, notes, and snippets.

View nybblr's full-sized avatar
🌱
I help developers craft their best work, achieve goals, and never stop growing.

Jonathan Lee Martin nybblr

🌱
I help developers craft their best work, achieve goals, and never stop growing.
View GitHub Profile
require 'yaml'
require 'csv'
class PlotLaser < Processing::App
def setup
@data = YAML.load File.open("albert.yml")
@smooth = false
no_smooth
@frame_index = 0
require 'date'
require 'yaml'
data = []
File.open "albert.rec" do |f|
f.each_slice(2) do |slice|
# key = items.delete_at(0).downcase
reads = slice.map do |line|
items = line.chomp.split(/\s+/)
@nybblr
nybblr / unicorn.sh
Created November 13, 2012 02:25 — forked from troex/unicorn.sh
Unicorn start/stop/restart script for Debian
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs mysql
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: unicorn initscript
# Description: Unicorn is an HTTP server for Rack application
### END INIT INFO