Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Moved to repository: https://github.com/Mailcloud/swift-serializer
| #!/bin/bash | |
| # | |
| # CloudyGamerLauncher by Larry Gadea | |
| # Easily start/stop Paperspace and Parsec instances | |
| # | |
| # Make sure to fill out the variables below. For the machine id, use the | |
| # 8-letter identifier for the machine on Paperspace (ex. PS8RGDUY) | |
| # | |
| # Note: Requires Paperspace API key (generate one in account settings) |
| import Foundation | |
| class ClassThatUsesThreadRunner { | |
| let bgThread: ThreadRunner | |
| /// Global Realm instance that may only be accessed from background thread | |
| var bgRealm: Realm? | |
| public init() { |
| /*: | |
| This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI | |
| The only purpose of this code is to implement those wrappers myself | |
| just to understand how they work internally and why they are needed, | |
| ⚠️ This is not supposed to be a reference implementation nor cover all | |
| subtleties of the real Binding and State types. | |
| The only purpose of this playground is to show how re-implementing | |
| them myself has helped me understand the whole thing better |