Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tomtwo on github.
  • I am tomtwo (https://keybase.io/tomtwo) on keybase.
  • I have a public key whose fingerprint is 0E73 F72A F738 F0F7 0945 B264 5572 5630 3908 6B1D

To claim this, I am signing this object:

@tomtwo
tomtwo / imageDirective.html
Created March 13, 2015 16:43
Angular Directive: Access images generated with ng-repeat from parent directive once all have loaded
<div>
<div ng-repeat="image in images" style="display: inline;">
<img image-directive-item ng-src="{{image.url}}" data-index="{{$index}}" />
</div>
</div>
@tomtwo
tomtwo / genstats.py
Created October 24, 2013 20:00
Process output from TOSSIM
#! /usr/bin/python
import sys
from array import array
# Possible input lines:
#
# Creating noise model for X
# Creating node X to boot at Y
# DEBUG (X): RadioCountToLedsC: timer fired, counter is Y.
# DEBUG (X): RadioCountToLedsC: packet sent.