I hereby claim:
- I am fbartho on github.
- I am fbartho (https://keybase.io/fbartho) on keybase.
- I have a public key ASBi_0J2KRTAirbomlqcoJ_cyDLRbwneneb5MeMGl9qedwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Original { | |
var opt1: String? = nil | |
var opt2: String? = nil | |
enum Foo : String { | |
case unknown | |
case one | |
case two | |
} | |
// Compile flags an error w/ fixit suggestion on line 11 relating to not using optionals directly as booleans | |
lazy var type: Foo = { |
#!/bin/bash | |
`xcode-select -p | grep -i beta > /dev/null` | |
if [ $? -eq 0 ] | |
then | |
echo "Using beta. Switching to release." | |
sudo xcode-select -s /Applications/Xcode.app | |
else | |
echo "Using release. Switching to beta." | |
sudo xcode-select -s /Applications/Xcode-beta.app |
// Note: Not pictured here: logic specific to the system that nukes the UICache.db if we know the content is probably out of date | |
/** | |
* Make our base URL cache to the similar details as the standard default sharedURLCache in case someone is using it. | |
* From Apple Docs for NSURLCache: | |
* <li>Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) | |
* <li>Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) | |
* <li>Disk path: <nobr>(user home directory)/Library/Caches/(current application name)</nobr> | |
* <br>where: | |
* <br>user home directory is determined by calling |