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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>com.apple.developer.icloud-container-identifiers</key> | |
<array> | |
<string>iCloud.is.workflow.my.workflows</string> | |
</array> | |
<key>get-task-allow</key> |
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
on run {input, parameters} | |
set delimitedList to paragraphs of (input as string) | |
tell application "Things3" | |
repeat with currentTodo in reverse of delimitedList | |
set newToDo to make new to do with properties {name:currentTodo} at beginning of list "Inbox" | |
end repeat | |
end tell | |
end run |
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
# HTTP Requests | |
Drafts 5 scripting is going to be on a whole different level. Can't wait to get this polished up and ready to ship! |
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
library(magrittr) | |
library(magick) | |
image_read("logo:") %>% | |
image_convert('png', colorspace = 'gray') %>% | |
image_edge(radius = 1) %>% | |
image_negate() %>% | |
image_transparent('white', 10000) %>% | |
image_background("white") %>% | |
image_browse() |
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
do shell script "pmset -g batt | grep InternalBattery | column -t" | |
set x to the result | |
set state to word 7 of x | |
set remaining to the word 10 of x | |
if state is "discharging" then | |
return 1 | |
else | |
return 2 | |
end if |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> | |
<title>Check AirPod availability in Apple Stores</title> | |
<style> | |
body { | |
font-size: 12px; |
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
import UIKit | |
import PlaygroundSupport | |
let vc = UIViewController() | |
vc.view.backgroundColor = .white | |
PlaygroundPage.current.liveView = vc | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
let button = UIButton(type: .system) | |
button.frame = CGRect(x: 0, y: 0, width: 240, height: 120) |
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/env ruby | |
require 'csv' | |
# md - Tables - Create from CSV | |
# v1.1 2016-08-17 | |
# From the Markdown Service Tools <http://brettterpstra.com/projects/markdown-service-tools/> | |
# Converts CSV style input to MultiMarkdown tables | |
# Changelog | |
# 1.1: Fixed error when line ended with whitespace in middle of input |
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
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |
NewerOlder