Skip to content

Instantly share code, notes, and snippets.

@bewest
bewest / README.markdown
Last active August 29, 2015 14:01
quick way to test nightscout PC?
@bewest
bewest / README.markdown
Created May 31, 2014 03:36
ubuntu loves you

Use ubuntu + xmonad. It's awesome.

Works well-ish with system76 laptops.

@bewest
bewest / README.markdown
Created June 2, 2014 23:38
something like this

Bare bare bones example using socket.io to aggregate several websockets on backend, and shove them out a single websocket on the frontend.

[
{
"_type": "BolusWizard",
"bg": 0,
"correction_estimate": 0.0,
"unknown_byte[10]": 0,
"_description": "BolusWizard 2014-07-01T23:40:15 head[2], body[13] op[0x5b]",
"timestamp": "2014-07-01T23:40:15",
"sensitivity": 45,
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
# 18d1:4e41
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
# 0bb4:0fff
# 0bb4:0ff9
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"
# 22b8:2e71
@bewest
bewest / egv_plus_timezone.markdown
Created July 16, 2014 09:03
binary dexcom blob upload, for data reduction

sgv

cat sgv.json | wc 
      1      11     130

Proposal:

@bewest
bewest / README.md
Last active August 29, 2015 14:04
quick experiment with protobuf

abstract

I wanted to see how sgv records might change in size (and thus affect data usage and billable data rates).

conclusion

Use of protobuf, regardless of how the schema is modified, seems to halve the size of json records. While BSON does reduce sizes, it's not by much.