I hereby claim:
- I am sasimpson on github.
- I am sasimpson (https://keybase.io/sasimpson) on keybase.
- I have a public key whose fingerprint is 24E2 0C0F FF97 6865 E969 5840 A4AE 2A7C 582F 2A14
To claim this, I am signing this object:
require 'uri' | |
require 'net/http' | |
class Chunked | |
def initialize(data, chunk_size) | |
@size = chunk_size | |
if data.respond_to? :read | |
@file = data | |
end | |
end |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 10 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); | |
struct RGB { | |
byte red; |
def color_bulb(s, bulb, i, rgb): | |
req = "2E %02X %s %02X %02X %02X" % (bulb, i, rgb[0], rgb[1], rgb[2]) | |
print req | |
s.write(binascii.unhexlify(''.join(req.split()))) |
import requests | |
import json | |
from cloudauth import getauth | |
def update_record(domain_name=None, record_name=None): | |
token, dns_url = getauth('dnsextension:dns') | |
headers = {'x-auth-token': token, 'content-type': 'application/json'} | |
my_ip_resp = requests.get('http://automation.whatismyip.com/n09230945.asp') | |
if my_ip_resp.ok: |
import mimetypes | |
import requests | |
import cloudauth | |
import os | |
import re | |
token, storage_url = cloudauth.getauth('object-store') | |
headers = {'x-auth-token': token} | |
regexp = re.compile('./output/') |
Antarctica: available | |
Europe East 4: available | |
Europe West 5: available | |
Europe West 6: available | |
North America West 3: available | |
North America West 4: available | |
North America East 3: available | |
North America East 4: available | |
Oceanic 2: full | |
Asia: available |
#!/usr/bin/python | |
import sys | |
import datetime | |
import argparse | |
def is_queso_week(today=None): | |
if today is None: | |
today = datetime.datetime.now() | |
if today.weekday() is not 0: |
I hereby claim:
To claim this, I am signing this object:
{ | |
"sections": [ | |
{ | |
"name": "Connecticut", | |
"abbr": "CT", | |
"area": "1" | |
}, { | |
"name": "Eastern Massachusetts", | |
"abbr": "EMA", | |
"area": "1" |