This file contains 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 | |
# Usage: first run your apple health export through the scripts as documented in https://github.com/markwk/qs_ledger/tree/master/apple_health | |
# then run this script using the BodyMass.csv from this process to get an OpenScale csv | |
import argparse | |
import csv | |
import datetime | |
from dateutil.parser import parse as parsedate |
This file contains 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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
ffmpeg-python = "*" | |
[dev-packages] |
This file contains 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
rejectdir="../reject/lowres" | |
for filename in * | |
do | |
width=`identify -format "%w" $filename` | |
if [ $width -ne 2000 ] | |
then | |
mv "$filename" "$rejectdir" |
This file contains 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
bug: bug.c | |
gcc bug.c -lvc -o bug | |
This file contains 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
""" | |
Author: Simon Westphahl <[email protected]> | |
Description: Brute-force implementation for solving the TSP. | |
http://en.wikipedia.org/wiki/Travelling_salesman_problem | |
""" | |
routes = [] | |
This file contains 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
//This is the very core of my MetricTime prank app which can be used/repurposed to convert regular time to Metric Time. | |
//See the full app here: https://github.com/DeveloperACE/MetricTime | |
func convertTime(inputTime: (hour: Int, minute: Int, second: Int), toMetric:Bool = true) -> (hour: Int, minute: Int, second: Int) { | |
var millisecondsSinceToday = 0 | |
var convertedTime = (hour: 0, minute: 0, second: 0) | |
if toMetric { |