Skip to content

Instantly share code, notes, and snippets.

View barbegal's full-sized avatar

Dan Anthony barbegal

View GitHub Profile
@barbegal
barbegal / .block
Last active March 21, 2017 19:08 — forked from VioletVivirand/.block
Cincy Buildings Over 5000sf plate
license: gpl-3.0
@barbegal
barbegal / t2.py
Last active August 29, 2015 14:07
Pi Temp Logger to Xively
#!/usr/bin/env python
import os
import xively
import subprocess
import time
import datetime
import requests
FEED_ID = "1910056643"
@barbegal
barbegal / N1WX
Created October 16, 2014 15:09
Node Write 1-Wire to Xively
var http = require('http');
var fs = require('fs');
var url = require('url');
var fileLocation = '/sys/bus/w1/devices/28-000003b74282/w1_slave';
http.createServer(function (req, res) {
var request_url = url.parse(req.url).pathname;
if (request_url == '/temperature.json') {
fs.readFile(fileLocation, 'utf8', function(err, data) {
@barbegal
barbegal / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block
@barbegal
barbegal / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block
@barbegal
barbegal / Subdivider.pde
Last active August 29, 2015 14:06
SubDivide an Image / Image Accuracy and Cell-size
//A Depth-Tree-ish Canvas-Splitter (w/o real recursion)
//for Processing 2 by Dan Anthony
PImage img; // Reference Image
PImage omg; // Display Image
int level[]; //Recursion Depth Marker - SPlit/count
float x;
float y;
float px;
float py;
@barbegal
barbegal / index.html
Last active August 29, 2015 14:05
Kimono API of Ebola Data from Wikipedia to D3 on bl.ocks.org
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
font: 10px sans-serif;
}
.axis path,