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/swift | |
import AppKit | |
import CoreServices | |
let args = CommandLine.arguments[1...] | |
let words = args.filter { !$0.hasPrefix("-") } | |
guard !words.isEmpty else { | |
print("Usage: \(URL(string: #file)!.lastPathComponent) [-o] <word1> [word2 [word3 [...]]]") |
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/bash | |
if ! command -v duti &> /dev/null; then | |
brew install duti | |
fi | |
declare -a extensions=( | |
## uti-based | |
public.plain-text | |
public.source-code |
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
var token = 'your-token-here'; // from https://erikberg.com/api for wildcard | |
var agent = 'Your/1.0 <user@agent>'; | |
var fetch = require('node-fetch'); | |
var hooks = {'https://hooks.slack.com/services/…': '#channel', | |
'https://hooks.slack.com/services/…': '#channel'}; | |
var team_table = { | |
"los-angeles-dodgers": ":dodgerslogo:", | |
"san-francisco-giants": ":giants:", |
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
let styles: [UIFont.TextStyle] = [ | |
// iOS 17 | |
.extraLargeTitle, .extraLargeTitle2, | |
// iOS 11 | |
.largeTitle, | |
// iOS 9 | |
.title1, .title2, .title3, .callout, | |
// iOS 7 | |
.headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
] |
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
// | |
// ZSWFileTester.m | |
// Image Size Test | |
// | |
// Created by Zachary West on 3/4/14. | |
// Copyright (c) 2014 Zachary West. All rights reserved. | |
// | |
#import "ZSWFileTester.h" |