Skip to content

Instantly share code, notes, and snippets.

@steveriggins
steveriggins / Delete Albums
Created June 29, 2026 21:36
AppleScript to delete many Photos Albums
-- ⚠️ DESTRUCTIVE APPLESCRIPT
-- ⚠️ IF THIS SCRIPT SCREWS UP YOUR PHOTOS ALBUMS, MY NAME IS GARY
-- ⚠️ YOU MUST UNCOMMENT THE DESTRUCTIVE LINE OF APPLESCRIPT YOURSELF
-- ⚠️ Change deleteAlbumsWhoseNameBeginsWith to the prefix of albums you want deleted
set deleteAlbumsWhoseNameBeginsWith to "REPLACE_THIS_AND_BE_CAREFUL"
tell application "Photos"
set ids to {}
repeat with thisOne in albums
1132 results - 1 file
D:\Games\World of Warcraft\_retail_\WTF\Account\BALDEMIR\Zul'jin\Wauren\SavedVariables\Prat-3.0.lua:
35601 {
35602: ["message"] = "|cff979797|Hpratcopy|h[20:17:33]|h|r Gilthunders performs Khaz Algar Mining on Bismuth.",
35603 ["serverTime"] = 1754795855,
35811 {
35812: ["message"] = "|cff979797|Hpratcopy|h[20:19:27]|h|r Jinain performs Khaz Algar Mining on Ironclaw.",
35813 ["serverTime"] = 1754795968,
import Combine
class Foo {
var blurValuePublisher: AnyPublisher<Float, Never> {
_blurValuePublisher.eraseToAnyPublisher()
}
private var _blurValuePublisher: CurrentValueSubject<Float, Never>
init() {
import Combine
import Foundation
class CombineExampleBase {
@Published var baseValue: Int
init(baseValue: Int) {
self.baseValue = baseValue
}
}
class Curried {
let x: Int
init(x: Int) {
self.x = x
}
func yummy() -> String {
"Curry is \(x)"
}
/// PrintIt.swift
@objcMembers public class PrintIt: NSObject {
func printIt(_ dict: [String : String]) {
print(dict)
}
}
/// ViewController.m
#import <PrintIt-Swift.h>
@steveriggins
steveriggins / gist:b30038513e745579db6115d75d676c4b
Created June 25, 2020 14:07
Xcode Derived Data Exclusion for Backblaze
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/DerivedData/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
# More Info: https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
//
// KnobView.swift
//
// Created by Steve Riggins on 6/30/19.
// Copyright © 2019 Steve Riggins. All rights reserved.
//
import SwiftUI
struct KnobView : View {
//
// ContentView.swift
// X
//
// Created by Steve Riggins on 6/29/19.
// Copyright © 2019 Steve Riggins. All rights reserved.
//
import SwiftUI
@steveriggins
steveriggins / gist:10dfd72fe11f698e5c3452cf42ce92b7
Created October 1, 2017 00:04
Using Dictionary with Codable
// Example of encoding and decoding a Swift Dictionary
let d = [
"Casey": 35,
"Erin": 34,
"Declan": 2
]
print("Original Dictionary: \(d)")
let encoder = JSONEncoder()
if let encoded = try? encoder.encode(d)