Skip to content

Instantly share code, notes, and snippets.

View bourgeois's full-sized avatar

Pierre-Olivier Bourgeois bourgeois

View GitHub Profile
### 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:
@bourgeois
bourgeois / UIStoryboardExtension.swift
Created May 10, 2018 18:17
Better UIStoryboard and UIViewController instantiation
//
// 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.
#!/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"