I hereby claim:
- I am imbradbrown on github.
- I am bradbrownrnp (https://keybase.io/bradbrownrnp) on keybase.
- I have a public key ASBTAhPLs1MkCqxq77m5gCXOKUZsjvYy225Up6bjBwWlOAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| @IBOutlet var scrollView: UIScrollView! | |
| var webView: WKWebView! | |
| /// container for the webView in the storyboard | |
| @IBOutlet var webViewContainer: UIView! | |
| /// height of the container | |
| @IBOutlet var webViewHeightConstraint: NSLayoutConstraint! | |
| override func viewDidLoad() { |
| var paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .allDomainsMask, true) | |
| var root = paths.first | |
| if let path = root?.appending("/image.jpg") { | |
| do { | |
| let url = URL(fileURLWithPath: path) | |
| try UIImagePNGRepresentation(image)?.write(to: url, options: Data.WritingOptions.atomicWrite) | |
| } catch { | |
| return | |
| } | |
| } |
| #!/bin/bash | |
| echo "stay next ^q stop undef start undef" >> ~/.bashrc | |
| echo '"\C-v": paste-from-clipboard' >> ~/.inputrc | |
| echo '"\C-z": copy-to-clipboard' >> ~/.inputrc | |
| ## Restart cygwin |
| #!/bin/bash | |
| ## file to upload. | |
| S3_UPLOAD_FILE=some/path/file.txt | |
| ## Specify the bucket name here. This can be found in the S3 console | |
| S3_BUCKET=bucket name here | |
| ## The desired path relative to the root of the bucket. All folders must be forward slash '/' separated | |
| S3_DESTINATION_FILE=folder/folder2/file.txt |