Skip to content

Instantly share code, notes, and snippets.

View alldritt's full-sized avatar

Mark Alldritt alldritt

View GitHub Profile
@alldritt
alldritt / murderbot.js
Last active March 10, 2024 13:28
A script for Scriptable (https://apps.apple.com/us/app/scriptable/id1405459188) that creates a Midsummer Murders Bot (https://twitter.com/midsomerplots) iOS 14 Widget.
async function loadItems() {
let url = "https://midsomerplots.acrossthecloud.net/plot";
let req = new Request(url);
let json = await req.loadJSON();
return json;
}
function createWidget(plot) {
let w = new ListWidget()
@alldritt
alldritt / sample.swift
Last active May 28, 2017 23:16
Eureka Form within UIAlertController
override func viewDidLoad() {
form
+++ Section("Testing")
<<< ButtonRow("alert") { (row) in
row.title = "Eureka Alert"
}
.onCellSelection { [weak self] (cell, row) in
let vc = FormViewController()
@alldritt
alldritt / as_cookbook.md
Last active April 4, 2024 20:28
AppleScript Cookbook

#AppleScript Cookbook

##Preface

##Strings