This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Given: | |
- CSV file with path: <INPUT_DIR>/heartRate-<YYYYMMDD>.csv | |
- First line of CSV file: <COLUMN_TIME>,<COLUMN_HEARTRATE> | |
- Rest of the lines: <Timestamp with format YYYY-MM-DD HH:mm:ss>,<Beats per minute> | |
Then: | |
- Create a new CSV file in: <OUTPUT_DIR>/heartRate-<YYYYMMDD>.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Steps: | |
1. Create a new project using template: 'Single View Application'. | |
2. Enable HealthKit capabilities for the app. | |
3. Add these properties to 'Info.plist': | |
- 'NSHealthShareUsageDescription' | |
- 'NSHealthUpdateUsageDescription' | |
4. Copy & paste the content of this file into 'ViewController.swift'. | |
4. Run the app in your iPhone. | |
5. Using Xcode, download the container for this app. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Imports | |
from argparse import ArgumentParser | |
from gi.repository import GObject | |
import connman_shared as shared | |
import dbus.mainloop.glib | |
import pyconnman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Listening port: $1" | |
while true; | |
do echo "=====>"; | |
echo -e 'HTTP/1.1 200 OK\r\n' | sudo nc -l $1; | |
echo ""; |