Open Omron app via custom scheme
test custom scheme
import Foundation | |
func tally(prob: Double, precision: UInt32, maxDiff: Double, repetitions: Int) { | |
var trues = 0 | |
let threshold = UInt32(prob * Double(precision)) | |
print("tally(prob: \(prob), precision: \(precision), repetitions: \(repetitions)):") | |
for _ in 1...repetitions { | |
let isTrue = arc4random_uniform(precision) < threshold | |
if isTrue { | |
trues += 1 |
// https://xkcd.com/2435/ | |
// Usage: geothemic meandian = g(array, epsilon, [iterations = 3]) | |
function g(a, epsilon, iterations) { | |
if (a.length < 1) { return NaN; } | |
iterations = (Number.isFinite(iterations) && iterations > 0) ? iterations : 3; | |
let geothmetic = Array.from(a); | |
while (range(geothmetic) > epsilon) { | |
geothmetic = f(geothmetic); | |
} |
-- For copying/pasting the title and URL of something from GitHub into an email or whatever. | |
-- output: places text into clipboard, e.g. "TitleOfPullRequest https://github.com/x/y/pull/123" | |
tell application "Safari" | |
set my_n to name of current tab of front window | |
set my_u to URL of current tab of front window | |
set my_script to "((document.title.match(/^(.*)( · Issue #| by [^ ]+ · Pull Request)/) || [])[1] || document.title)+ ' ' + document.location.href;" | |
set my_t to (do JavaScript my_script in current tab of front window) | |
set the clipboard to my_t | |
end tell |
#!/usr/bin/ruby | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'base64' | |
$compare_from = ARGV[0] | |
$compare_to = ARGV[1] | |
$output_format = ARGV[2] || "markdown" |
-- https://apple.stackexchange.com/a/338355/13458 | |
tell application "System Preferences" | |
reveal anchor "Main" of pane id "com.apple.preference.general" | |
end tell | |
tell application "System Events" | |
repeat until exists of checkbox "Dark" of window "General" of application process "System Preferences" | |
delay 0.1 |
Open Omron app via custom scheme
test custom scheme
Race data on Strava
I chose this as my first 50-mile trail race with the perception that it was “easy” (on paper, relative to Virgil and Cayuga at least) and well timed as a training race for Twisted Branch (though I did intend to really race it, just not as a goal race).
The hills were entirely reasonable. The mud was something else: I certainly expected mud, though not the quantity and quality and variety that we faced today. Given the choice I'd avoid a muddy run, but I'm not afraid of it (after completing last year's Sehgahunda). The mud mainly presented some interesting strategic and technical challenges: increased wear and fatigue on the legs, more focus required on otherwise not-very-technical trails, and most importantly it required a singular dedication to making up time on what dry ground was available.
Since this was in a way my first 50-mile race (I got in 54 at Mind the Ducks but that's a different thing), it was a very inte
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+ |
Mike Mertsock discovered the Rochester trail running community while building what would become the official #TrailsRoc app. Now a member of #TrailsRoc and groupie to many of the local running personalities, he has a hard time refusing a race. Mike’s haphazard but prodigious training has got him through local classics such as Sehgahunda, Mind the Ducks, Finger Lakes 50s, Twisted Branch and Mendon Trail Run, and he continues to search for the next challenge in ultra, trail, and mountain running, or any excuse to spend long day in the woods.
In addition to the #TrailsRoc app, Mike created Dayly Calendar to track all the non-running things in his life that he would otherwise forget, like cross-training and litter-scooping.
Mike’s wife Valerie is known for her top-notch aid station, crew, and pastry skills.
Though not normally very talkative, Mike occasionally goes deep with his race reports on his blog, [Running|Code](http://ww