Skip to content

Instantly share code, notes, and snippets.

View bcelenza's full-sized avatar
👋

Brian Celenza bcelenza

👋
View GitHub Profile
@bcelenza
bcelenza / arduino_eeprom.c
Created March 31, 2016 16:03
EEPROM Arduino
#include <Wire.h> // specify use of Wire.h library.
#define FLOAT_LENGTH 4
#define DOUBLE_LENGTH 8
#define UINT_LENGTH 2
const int EEPROM_DEVICE_ADDR = 0x50;
int loops = 0;
void setup()
@bcelenza
bcelenza / .block
Created February 29, 2016 04:30 — forked from mbostock/.block
Orthographic
license: gpl-3.0
@bcelenza
bcelenza / gist:3ee8c6ddf7c0c085a544
Last active August 29, 2015 14:07
Stop checking host keys for localhost
# ~/.ssh/config
# Disable checking of host key (great when you use lots of VMs)
Host localhost
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
User foo
LogLevel QUIET
listener.start # not blocking
puts "Watching for file changes at."
puts "Ctrl+C to stop watching."
puts ""
puts "Watching..."
while listener.listen? do
sleep 0.5
end
rescue SystemExit, Interrupt

Keybase proof

I hereby claim:

  • I am bcelenza on github.
  • I am bcelenza (https://keybase.io/bcelenza) on keybase.
  • I have a public key whose fingerprint is 6062 ABDF 0D93 7D3C 310C E1BC 9C0A 7727 E97E 5EA4

To claim this, I am signing this object:

// create the base task object
var task = {
getName: function() {
return "Frank";
}
}
// now create a new timedTask object based on the task object
var timedTask = Object.create(task);
#!/usr/bin/env ruby
require 'net/https'
require 'uri'
require 'rubygems'
require 'tweetstream'
require 'mail'
# defaults/config
try {
// do something
throw new Error('this is my error message');
catch (err) {
// do something else
}