Skip to content

Instantly share code, notes, and snippets.

@daose
daose / benchmark.sh
Created May 27, 2019 02:30
benchmark.sh
#!/bin/bash
echo --- Deleting
rm -f *.jav
rm -f *.class
echo --- Compiling
javac *.java
if [ $? -ne 0 ]; then
exit
@daose
daose / timings.log
Created May 26, 2019 14:45
timings
------TINY
connecting to localhost:18999
listening on port 18999
connected, sending request
read input from sample_input/tiny.txt
sent request header and 16 bytes of payload data to server
received response header, data payload has length 20
received 20 bytes of payload data from server in 68ms
wrote output to sample_output/tiny.txt
terminated connection to server
#include <BMI160.h>
#include <CurieIMU.h>
#include "CurieIMU.h"
#include "CurieBLE.h"
#include <Math.h>
BLEPeripheral blePeripheral;
BLEService cursorService("19B10010-E8F2-537E-4F6C-D104768A1214");
BLECharCharacteristic yCharacteristic("19B10012-E8F2-537E-4F6C-D104768A1216", BLERead | BLENotify);