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 |
#!/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://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 |
-- 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 |
set -e # http://stackoverflow.com/q/2870992/795339 | |
podname=<TODO:NAME> | |
version=$(grep s.version $podname.podspec | head -1 | cut -d = -f 2 | cut -d '"' -f 2) | |
poddir=<TODO:ROOT DIRECTORY OF YOUR LOCAL PODS REPO>/$podname/$version | |
# This should print without any quote characters. Otherwise the script will break. | |
echo "Publishing $podname release $version..." | |
echo "The podspec file should be updated with a new version number. Going to commit." |
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
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+ |