Skip to content

Instantly share code, notes, and snippets.

View mdobson's full-sized avatar
😺
Petting a cat

Matthew Dobson mdobson

😺
Petting a cat
View GitHub Profile
@mdobson
mdobson / 1.py
Created July 9, 2018 11:45
Look at tensorflow nodes
import tensorflow as tf
import sys
from tensorflow.python.platform import gfile
from tensorflow.core.protobuf import saved_model_pb2
from tensorflow.python.util import compat
with tf.Session() as sess:
model_filename = 'ssdlite_mobilenet_v2_coco_2018_05_09/saved_model/saved_model.pb'
with gfile.FastGFile(model_filename, 'rb') as f:
@mdobson
mdobson / 1.py
Last active June 22, 2018 18:34
Scrape MDEQ Asbestos Notifications
import requests
import urllib
from bs4 import BeautifulSoup
from urllib.parse import urlparse
#Initial request
r = requests.get('http://www.deq.state.mi.us/asbestos_notifications/Pages/AbSearch.aspx')
#Parse out nasty asp.net form stuff
[
{
"id": "1234567890",
"displayName": "abc123",
"created":"1481917061",
"updated":"1481917061",
"createdBy":"mdobs",
"updatedBy":"mdobs",
"scopeId": "ABCDEF",
"uri": "file:///tmp/F1ERRO/0c9853d1ad9b7ec9f7d16ed16ada1be4/archive/369a01f320f926cd8ffac5dfda83b1d8a2129ab3.zip",
scopes:
  3cef180d:
    proxies:
      edgemicro_hello:
        revision: '15'
        proxy_name: 'default'
        base_path: '/iloveapis'
        target_name: 'default'
        url: 'http://mocktarget.apigee.net/'

Keybase proof

I hereby claim:

  • I am mdobson on github.
  • I am mdobs (https://keybase.io/mdobs) on keybase.
  • I have a public key whose fingerprint is 9CEC 883E 7E06 DC7E F604 440B F9DE 4F43 ED77 1EAE

To claim this, I am signing this object:

@mdobson
mdobson / 1.js
Created June 11, 2016 02:10
Messing around with http and zetta
var http = require('http');
var zetta = require('zetta');
var url = require('url');
var zettaApp = zetta();
zettaApp.name('foo');
var basepath = '/base';
@mdobson
mdobson / 1.js
Created March 11, 2016 13:41
check for stream
function checkForStream(device, streamName) {
return Object.keys(device._streams).indexOf(streamName) != -1
}
@mdobson
mdobson / 1.js
Last active October 19, 2015 15:12
project.
var zetta = require('zetta');
var Buzzer = require('zetta-buzzer-bonescript-driver');
var Microphone = require('zetta-microphone-bonescript-driver');
var app = require('./app');
zetta()
.link('http://hello-zetta.herokuapp.com/')
.use(Buzzer)
.use(Microphone)
.use(app)
dispatch_async(dispatch_get_main_queue(), ^{
[self.action setTitle:self.transition.name forState:UIControlStateNormal];
});
@mdobson
mdobson / 1.md
Last active August 29, 2015 14:21
  • Reactive Hypermedia: A new approach to APIs
  • Description: The next generation of API powered applications will need more connectivity than ever before. These applications will range from video games to firmware inside of a smart oven. Todays API design fundamentals may work for this new breed of applications, but will they last? How can we improve the way APIs power the applications and distributed systems of tomorrow?

This talk will delve into the world of Reactive Hypermedia. We'll have a discussion around using state machine models in APIs, aspects of hypermedia, and using reactive streams to create a longer lasting API.

Learn tips and tricks for implementing these patterns within your own API! We'll also cover the real world use case of Zetta, an open source platform for the Internet of Things.

  • Speaker Bio: Matt Dobson <@mdobs> has been working in the Southeast Michigan software community for almost 7 years. In that time he's been at many different kinds of firms solving problems from hea