Spotify | Apple Music |
---|---|
Amazon Echo integration | Offline Apple Watch playback |
Smart playlists |
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 | |
# frozen_string_literal: true | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Fetch Markdown link from Chrome | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.icon 🔗 |
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 Foundation | |
/** | |
Extensions that allow `JSONEncoder` and `JSONDecoder` to produce/consume dictionaries, instead of simply raw data. | |
*/ | |
extension JSONEncoder { | |
func encodeAsJSONObject<T>(_ value: T) throws -> Any where T: Encodable { | |
return try JSONSerialization.jsonObject(with: try encode(value), options: []) | |
} |
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 Foundation | |
final class ConsoleLogDestination: LogDestination { | |
func log(statement: String) { | |
#if DEBUG | |
print(statement) | |
#endif | |
} | |
func error(error: Error) { |
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 | |
/** | |
Enables smooth collection view selection by de-duplicating calls to `selectItemAtIndexPath:animated:scrollPosition:` | |
If `selectItemAtIndexPath:animated:scrollPosition:` is being driven off of something like `scrollViewDidScroll:` | |
delegate calls, we’d likely be invoking the former needlessly, with the same index path. This can result in jerky | |
scrolling. | |
This class will ensure that we ignore any calls to `selectItemAtIndexPath:animated:scrollPosition:` that are identical |
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
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
if target.name == 'ServiceKit' || target.name == 'SharedUI' || target.name == 'ContactPicker' | |
target.build_configurations.each do |config| | |
if config.name == 'Debug' | |
config.build_settings['OTHER_SWIFT_FLAGS'] = '-Xfrontend -warn-long-function-bodies=100' | |
else | |
config.build_settings['OTHER_SWIFT_FLAGS'] = '' | |
end | |
end |
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
// | |
// SearchController.swift | |
// Prefer | |
// | |
// Created by Bryan Irace on 5/31/17. | |
// Copyright © 2017 Prefer. All rights reserved. | |
// | |
import RxSwift | |
import RxCocoa |
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
/* | |
This Swift bug seems to be related: https://bugs.swift.org/browse/SR-2235. Seems as though | |
the different ways that worked previously might have never actually been intended? | |
*/ | |
protocol DataVendor { | |
associatedtype Vended | |
var data: [Vended] | |
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 | |
# | |
# A simple script to generate an animated gif from an mp4 file. | |
# | |
# Some notes: | |
# - To use this you need both ffmpeg and imagemagick installed. You can 'brew install' both of them. | |
# - Our version of github enterprise has a 10MB size limit per file. Make sure your gifs are below that limit. | |
# | |
# This is based on https://gist.github.com/dergachev/4627207 | |
# |
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 Foundation | |
import Result | |
import Security | |
/** | |
* A simple wrapper around the Security framework’s keychain functions, providing a Swifty-er API. | |
*/ | |
typealias KeychainQuery = [String: Any] | |
struct Keychain { |
NewerOlder