Skip to content

Instantly share code, notes, and snippets.

View anjiro's full-sized avatar

Daniel Ashbrook anjiro

View GitHub Profile
@anjiro
anjiro / Keynote randomly rotate images.scpt
Created May 4, 2020 11:49
Applescript to randomly rotate images on the current slide
tell application "Keynote"
set curslide to the front document's current slide
repeat with img in the images of curslide
-- iWork rotation is, irritatingly, an integer
set the rotation of img to random number from -5 to 5
end repeat
end tell
@anjiro
anjiro / stridx_vs_match.vim
Created November 6, 2021 18:37
Vim stridx vs match
function RandStr(len)
py3 << EOF
import vim, random
rstr = ''.join([chr(random.randint(65,123)) for i in range(int(vim.eval('a:len')))])
vim.command(f"return '{rstr}'")
EOF
endfunction
function TimeStridx(numiter, candidates)
@anjiro
anjiro / bp.yaml
Created October 17, 2022 17:45
Test
blueprint:
name: One-Time Scheduled Toggle
description: Turn something on or off at a scheduled time.
domain: automation
input:
what:
name: Action to do
description: On or off?
selector:
boolean: