Skip to content

Instantly share code, notes, and snippets.

@snbaker
snbaker / gist:16f8ca45671671934ed73322b08d6219
Created October 16, 2018 14:50
load data with translation
def load_data(frames_path, segments_path):
d = dict()
with open(frames_path, "r") as f:
reader = csv.reader(f, delimiter=",")
for i, line in enumerate(reader):
activity = line[0]
if activity not in d:
d[activity] = []
d[activity].append(line[1:-1])
X = []
This file has been truncated, but you can view the full file.
0 22080-22123/? I/OIC_CA_ANALYZER_102301: 9C 3C 43 F1 E6 A2 DE F1
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: Res URI = [(null)]
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: Payload Format = [0]
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: CoAP Message Full Size = [131]
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: CoAP Header (+ 0xFF)
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: D8 6B 45 9C 3C 43 F1 E6 A2 DE F1 61 00 FF
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: CoAP Header size = [14]
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: CoAP Payload
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: CoAP Payload Size = [117]
01-12 13:16:48.150 22080-22123/? I/OIC_CA_ANALYZER_102301: =================================================
### Keybase proof
I hereby claim:
* I am snbaker on github.
* I am snbaker (https://keybase.io/snbaker) on keybase.
* I have a public key whose fingerprint is FD24 97A2 4F19 9766 447B DB17 D8E9 04AC 9C9F E80E
To claim this, I am signing this object:
#!/bin/bash --debugger
export MAKEFLAGS="-j 1"
set -e
BRANCH="1.10"
if grep -q BCM270 /proc/cpuinfo; then
echo "RPI BUILD!"
RPI="1"
fi