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
/// If you work with Codable and use automatic `snake_case` conversion | |
/// when encoding/decoding objects, you might have found that `fooId` | |
/// works both ways, however `fooID` does not. | |
/// | |
/// Issue: decoder fails to convert `snake_id` to `snakeID` | |
/// | |
import Foundation | |
struct Snake: Codable { | |
var snakeID: UUID |
This file has been truncated, but you can view the full file.
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 Accessibility | |
import AppKit | |
import Combine | |
import CoreData | |
import CoreFoundation | |
import CoreGraphics | |
import CoreText | |
import CoreTransferable | |
import Darwin | |
import DeveloperToolsSupport |
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
# | |
# <filename>.dmg can be a path to a file on an existing folder | |
# <window title> appears when the DMG is open | |
# <file system> APFS, HFS+, etc | |
# UDRW format makes the image read/write (use UDSP for read-only) | |
# | |
hdiutil create <filename>.dmg -volname "<window title>" -fs APFS -format UDRW -srcfolder <path/to/folder> |
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
public indirect enum Expression { | |
case term(Bool) | |
case list(_ expressions: [Expression]) | |
public func contains(where predicate: (Bool) -> Bool) -> Bool { | |
switch self { | |
case let .term(term): | |
return predicate(term) | |
case let .list(expressions): | |
return expressions.contains { expression in |
This file has been truncated, but you can view the full file.
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", | |
"aarónica", | |
"aarónico", | |
"ab", | |
"abab", | |
"ababillarse", | |
"ababol", | |
"abacá", | |
"abacera", |
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 | |
aarónica | |
aarónico | |
ab | |
abab | |
ababillarse | |
ababol | |
abacá | |
abacera | |
abacería |
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
[ | |
"aahed", | |
"aalii", | |
"aargh", | |
"aarti", | |
"abaca", | |
"abaci", | |
"abacs", | |
"abaft", | |
"abaka", |
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
[ | |
"aback", | |
"abase", | |
"abate", | |
"abbey", | |
"abbot", | |
"abhor", | |
"abide", | |
"abled", | |
"abode", |
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
// | |
// LRUCacheActor.swift | |
// LRUCacheActor | |
// | |
// Created by Eneko Alonso on 9/5/21. | |
// | |
import Foundation | |
import OrderedCollections |
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 xcodeclean | |
echo "Cleaning Xcode Derived Data folder..." | |
command rm -frd ~/Library/Developer/Xcode/DerivedData/* | |
echo "Cleaning Xcode caches folder..." | |
command rm -frd ~/Library/Caches/com.apple.dt.Xcode/* | |
end |
NewerOlder