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
// I think this works and doesn't create circular references? | |
/* | |
Usage: Add OCObservableKeyPaths conformance to the observed type. Then, e.g. | |
audioPlayer | |
.publisher(forObservableKeyPaths: [ \.timestamp, \.duration ]) | |
.sink { | |
// respond to change | |
} |
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 Foundation | |
fileprivate protocol Statelike { | |
var stateMachine: StateMachine { get } | |
func logIn() | |
func logOut() | |
} | |
extension Statelike { | |
func logIn() {} |
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
all: server | |
server: server.c | |
clang -Wall -Wextra -std=c99 -pedantic -g -levent -o server server.c | |
clean: | |
rm -rf server server.dSYM |