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
### Keybase proof | |
I hereby claim: | |
* I am bourgeois on github. | |
* I am bourgeois (https://keybase.io/bourgeois) on keybase. | |
* I have a public key whose fingerprint is 6DA1 ED6C E45E A03D 8CCC 59D4 437C 0D16 022D 0FC8 | |
To claim this, I am signing this object: |
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
// | |
// UIStoryboardExtension.swift | |
// | |
import Foundation | |
/* | |
This is an extension to help with UIStoryboard and UIViewController instantiation from identifier. | |
The ultimate goal is to remove hard coded UIStoryboard and UIViewController identifiers in code. |
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
#!/usr/bin/env bash | |
set -e | |
while true; do | |
netcat -lp 1234 -e ' | |
read request_line | |
resource=$(echo $request_line | cut -f2 -d" " | cut -c 2-) | |
[ -n "$resource" ] || resource=. | |
say "Received request: $resource" 2> /dev/null | |
if [ -e "$resource" ]; then | |
echo "HTTP/1.0 200 OK" |