Skip to content

Instantly share code, notes, and snippets.

# Adapted from tutorial code at https://punchthrough.com/bluetooth-low-energy-peripheral-testing/
import time
import uuid
import random
import Adafruit_BluefruitLE
DEVICE_NAME = "Gas Monitor"
# Define service and characteristic UUIDs used by the peripheral.
@alexwhittemore
alexwhittemore / Class Prototype.ipynb
Created August 27, 2018 21:13
Prototyping a new class using a Jupyter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexwhittemore
alexwhittemore / Using Python Packages.ipynb
Last active August 27, 2018 20:03
A simple tutorial using a Jupyter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexwhittemore
alexwhittemore / gist:5490037
Created April 30, 2013 16:50
Ajax CDN traceroute from Cali via VPN to MA. The peculiar thing is, this isn't a full tunnel. The request is going out to the interwebs from cali, not from MA. I wonder how it's picking a sever. File in question: http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.js - that serves fine with no VPN but fails with VPN establis…
######## From Cali via VPN ###########
Alexs-Unibody:kreport2 alexw$ traceroute ajax.aspnetcdn.com
traceroute: Warning: ajax.aspnetcdn.com has multiple addresses; using 70.37.128.132
traceroute to mscomajax.vo.msecnd.net (70.37.128.132), 64 hops max, 52 byte packets
1 192.168.16.1 (192.168.16.1) 1.769 ms 0.802 ms 0.688 ms
2 192.168.1.1 (192.168.1.1) 1.198 ms 1.959 ms 1.773 ms
3 l100.lsanca-vfttp-143.verizon-gni.net (72.67.53.1) 15.358 ms 9.778 ms 9.581 ms
4 g0-13-1-0.lsanca-lcr-21.verizon-gni.net (130.81.140.124) 12.787 ms 14.273 ms 14.865 ms
5 so-4-1-0-0.lax01-bb-rtr1.verizon-gni.net (130.81.151.246) 62.114 ms 15.219 ms 11.888 ms