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 CryptoSwift | |
func encryptAES(message: String, key: String, iv: String) throws -> String { | |
let data = Data(message.utf8) | |
let keyData = Data(key.utf8) | |
let ivData = Data(iv.utf8) | |
let aes = try AES(key: keyData.bytes, blockMode: CBC(iv: ivData.bytes), padding: .pkcs7) | |
let encrypted = try aes.encrypt(data.bytes) | |
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
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
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 documentPicker = UIDocumentPickerViewController(documentTypes: ["public.data"], in: .import) | |
documentPicker.delegate = self | |
documentPicker.allowsMultipleSelection = false | |
documentPicker.modalPresentationStyle = .fullScreen | |
self.present(documentPicker, animated: true, completion: nil) |
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
box.layer.cornerRadius = 20; | |
box.layer.masksToBounds = true; |
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.generated_projects.each do |project| | |
project.targets.each do |target| | |
target.build_configurations.each do |config| | |
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' | |
end | |
end | |
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
chown -R root:root 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
$ brew install node |
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 applicationWillTerminate(_: UIApplication) { | |
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
print("[\(LogFile.logFile.getDate())] Application Will Terminate]\n", to: &LogFile.logFile) | |
// 앱 종료시 자동 로그인이 아니면 위젯 로그아웃 | |
print("isAutoChecked : \(WidgetInterface.isAutoChecked)") | |
WidgetInterface.logout() | |
unsubscribeFromTopic() | |
} |
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
java -jar [파일명].jar |
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 MyWebView: UIScrollViewDelegate { | |
func scrollViewWillBeginZooming(_ scrollView: UIScrollView, with view: UIView?) { | |
scrollView.pinchGestureRecognizer?.isEnabled = false | |
} | |
} |
NewerOlder