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
// | |
// TableViewCell.swift | |
// iOS12App | |
// | |
// Created by Kazuma Koze on 2020/03/05. | |
// Copyright © 2020 Climb App. All rights reserved. | |
// | |
import UIKit | |
import SwiftUI |
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
macOS Big Sur 11.4(20F71) | ||
---|---|---|
otool -L /System/Applications/Reminders.app/Contents/MacOS/Reminders | ||
/System/Applications/Reminders.app/Contents/MacOS/Reminders (architecture x86_64): | ||
/System/Library/PrivateFrameworks/RemindersUICore.framework/Versions/A/RemindersUICore (compatibility version 1.0.0, current version 2285.0.0) | ||
/System/Library/PrivateFrameworks/ReminderKitInternal.framework/Versions/A/ReminderKitInternal (compatibility version 1.0.0, current version 385.0.0) | ||
/System/Library/PrivateFrameworks/CharacterPicker.framework/Versions/A/CharacterPicker (compatibility version 1.0.0, current version 184.3.0) | ||
/System/Library/PrivateFrameworks/AOSAccounts.framework/Versions/A/AOSAccounts (compatibility version 1.0.0, current version 1.9.95) | ||
/System/Library/PrivateFrameworks/AOSKit.framework/Versions/A/AOSKit (compatibility version 1.0.0, current version 282.0.0) | ||
/System/Library/Frameworks/MapKit.framework/Versions/A/MapKit (compatibility version 1.0.0, current version 0.0.0) | ||
/System/Library/PrivateFrame |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>configurationVersion</key> | |
<integer>2</integer> | |
<key>maxAttachmentsPerNote</key> | |
<integer>100</integer> | |
<key>maxInlineAssetSizeBytes</key> | |
<real>102400</real> |
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
// MPMusicPlayerController has private method setVolume: and setVolumePrivate: | |
// The following KVO works on iOS 8.3. | |
MPMusicPlayerController *playerController = [MPMusicPlayerController systemMusicPlayer]; | |
[playerController setValue:@(0.1) forKey:@"volume"]; | |
[playerController setValue:@(0.2) forKey:@"volumePrivate"]; |
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 button = UIButton(frame: frame, primaryAction: action) | |
// implicitly | |
let button = UIButton(frame: frame) | |
button.addAction(action: action, for: .primaryActionTriggered) |
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
.gist { | |
color: #333; | |
font-size: 16px; | |
} | |
.gist .markdown-body { | |
overflow: hidden; | |
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; | |
font-size: 16px; | |
line-height: 1.6; | |
word-wrap: break-word; |
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
extension AVSpeechSynthesisVoice { | |
class func currentLanguageCodeWorkaround() -> String { | |
if #available(iOS 13, *) { | |
for preferredLanguage in Locale.preferredLanguages { | |
let locale = Locale(identifier: preferredLanguage) | |
if let languageCode = locale.languageCode { | |
var voiceLanguage = languageCode | |
if let regionCode = locale.regionCode { |
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
// AppleScript JavaScript | |
// get application | |
app = Application('Microsoft Excel'); | |
// get worksheet by name | |
worksheet = app.worksheets['Sheet1']; | |
// get row | |
row = worksheet.rows[1]; |
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
func unicodeCodePointsToString(_ codePoints :[UInt32]) -> String { | |
let unicodeScalars = codePoints.compactMap { Unicode.Scalar($0) } | |
let characters = unicodeScalars.map { Character($0) } | |
let string = String(characters) | |
return string | |
} | |
// HIRAGANA LETTER GA | |
let ga = unicodeCodePointsToString([0x304C]) | |
// HIRAGANA LETTER KA, COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK |
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
/* | |
Copyright (c) 2018 Kazume Koze | |
Released under the MIT license | |
https://opensource.org/licenses/mit-license.php | |
*/ | |
// | |
// CaseIterable+Index.swift | |
// | |
// |