(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Created by Helge Heß 2021-06-17 | |
import Foundation | |
// They use obfuscated names to hide it from us! | |
import JavaScriptCore | |
/// Setup our async/await runtime. | |
let runtime = JSContext()! |
If you are having device with new iOS version(iOS 10.3 for example), but don't wanna to update XCode 8.2.1. | |
It's very simple to run application on new iOS with old XCode. | |
Check this out. | |
Follow the steps: | |
1. Download .dmg file with new XCode from apple developer portal (https://developer.apple.com/download/more/). | |
2. Keep your old XCode and unarchive new XCode from .dmg file. | |
3. Goto (New XCode path)/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and copy folder with new iOS | |
4. Paste it to (Old XCode path)/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport |
/** | |
# QUESTION | |
Is there a way to combine `guard` and `try-catch`, so that we can | |
exploit the `guard let` to have a immutable value, but have an early | |
return in case of errors? | |
*/ |
#Just base64 encode a binary file: | |
openssl base64 -in file.bin -out file.b64 | |
#Decode the same file | |
openssl base64 -d -in file.b64 -out file.bin | |
#Encrypt a file using triple DES in CBC mode using a prompted password: | |
openssl des3 -salt -in file.txt -out file.des3 | |
#Decrypt a file using a supplied password: |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#ifndef CGFLOAT_EPSILON | |
#if CGFLOAT_IS_DOUBLE | |
#define CGFLOAT_EPSILON DBL_EPSILON | |
#else | |
#define CGFLOAT_EPSILON FLT_EPSILON | |
#endif | |
#endif |