Skip to content

Instantly share code, notes, and snippets.


Antonio Rodrigues aaadonai

View GitHub Profile
View gist:3079d72aeb4944f7143639731065766a
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="">
<title>antonio Twtxt Atom Feed</title>
<subtitle>iOS engineer living in SF. Working on an open source iOS client for twtxt</subtitle>
<link href=""></link>
View gist:017ea1b57e51232aa45e4e2266c90373
### Keybase proof
I hereby claim:
* I am aaadonai on github.
* I am aaadonai ( on keybase.
* I have a public key ASBUfGyrgSXLQr_-3hGskpa34CjCYyWw13ECtxIvv6UQBwo
To claim this, I am signing this object:
aaadonai / DocumentType.swift
Created Apr 19, 2016
A Swift enum that recognizes basic mimetypes in a NSData
View DocumentType.swift
// Inspired by:
import Foundation
enum DocumentType: String {
case jpeg = "image/jpeg"
case png = "image/png"
case gif = "image/gif"
case tiff = "image/tiff"