I hereby claim:
- I am vi4m on github.
- I am vi4m (https://keybase.io/vi4m) on keybase.
- I have a public key ASCLCcLhtEgffh8mDXgJ86Q_kyPP6wppprdI_MK1madJdwo
To claim this, I am signing this object:
import TokamakShim | |
import JavaScriptKit | |
public let window = JSObject.global.window.object! | |
public let location = JSObject.global.location.object! | |
struct TokamakApp: App { | |
var body: some Scene { | |
WindowGroup("Tokamak App") { | |
ContentView() |
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am vi4m on github. | |
* I am vi4m (https://keybase.io/vi4m) on keybase. | |
* I have a public key ASCLCcLhtEgffh8mDXgJ86Q_kyPP6wppprdI_MK1madJdwo | |
To claim this, I am signing this object: |
#!/usr/bin/swift -target x86_64-apple-macosx10.12 -v | |
import Cocoa | |
import WebKit | |
func halfWindow(title: String = "Half Window (^c to quit)") -> NSWindow { | |
let window = NSWindow() | |
if let screen = window.screen { | |
var frame = screen.visibleFrame | |
let size = CGSize(width: frame.size.width / 2, height: frame.size.height) | |
frame = CGRect(origin: .zero, size: size) |
HTTP/1.1 200 OK | |
Date: Fri, 16 Sep 2016 16:23:17 GMT | |
Connection: close | |
test |
#!/usr/bin/env python | |
""" | |
Demo Content-Length bug in Zewo | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
#!/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a.xctoolchain/usr/bin/swift | |
import Foundation | |
func currentPath() -> String { | |
let pathPointer = UnsafeMutablePointer<Int8>(allocatingCapacity: 1024) | |
defer { pathPointer.deallocateCapacity(1024) } | |
// #!Swift-1.1 | |
import Foundation | |
// MARK: - (1) classes | |
// Solution 1: | |
// - Use classes instead of struct | |
// Issue: Violate the concept of moving model to the value layer | |
// http://realm.io/news/andy-matuschak-controlling-complexity/ |