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
tell front document of application "Capture One 22" | |
set theYear to year of (current date) as string | |
--set theYear to "2012" | |
-- Make year group | |
set theYearGroup to make new collection with properties {name:theYear, kind:group} | |
-- Make month groups | |
repeat with i from 1 to 12 |
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
// | |
// Dict+ID.swift | |
// | |
// | |
// Created by Emory Dunn on 7/25/23. | |
// | |
import Foundation | |
import Collections |
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
function finder_icons --description 'Script to toggle Finder icons' | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
set enabled $status | |
switch $argv[1] | |
case off | |
if test $enabled -eq 1 | |
osascript -e 'tell application "Finder" to quit' | |
defaults write com.apple.finder CreateDesktop false | |
open -a Finder |
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
function emoji --description 'Download an Emoji from Slack' | |
set url $argv | |
# Download the file | |
wget -q "$url" | |
# Parse the URL. | |
# Last component is the filename on the server | |
# Second to last is the emoji name in Slack | |
set urlComponents (string split "/" $url) |
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
// | |
// WebSocketTaskPublisher.swift | |
// | |
// | |
// Created by Emory Dunn on 5/23/21. | |
// | |
import Foundation | |
import Combine |
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
esphome: | |
name: led_strip_1 | |
platform: ESP8266 | |
board: esp8285 | |
includes: | |
- custom_components/sonoff_l1.h | |
wifi: | |
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
// A Swift script to Convert GPX files to GeoJSON files for import into Compass | |
// The script takes a single argument, the GPX file, and saves out a matching GeoJSON file | |
// | |
// The GeoJSON is meant to be imported into Compass (https://github.com/aaronpk/Compass) | |
// and thus is not "correct" GeoJSON | |
import Foundation | |
/// An object to handle converting a GPX file to GeoJSON | |
struct GPXtoGeoJSON { |
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
// | |
// IncrementCounter.swift | |
// | |
// Created by Emory Dunn on 2019-04-01. | |
// | |
import Foundation | |
extension URL { | |
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 python3 | |
import argparse | |
import base64 | |
import json | |
import os | |
import shlex | |
import subprocess | |
import sys | |
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
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#define wifi_ssid "## SSID ##" | |
#define wifi_password "## PASSWORD ##" | |
#define mqtt_server "## SERVER IP ##" | |
//#define mqtt_user "" | |
//#define mqtt_password "" |
NewerOlder