Skip to content

Instantly share code, notes, and snippets.

@weekwood
Created December 13, 2014 01:58
Show Gist options
  • Save weekwood/f6207daff7859d08931a to your computer and use it in GitHub Desktop.
Save weekwood/f6207daff7859d08931a to your computer and use it in GitHub Desktop.
_MimeTypes = @{
@"text/plain": @{ @"icon": @"txt-big", @"ext" : @[@"txt", @"text", @"conf", @"def", @"log", @"list", @"ini"] },
@"text/css": @{ @"icon": @"css-big", @"ext" : @[@"css"] },
@"text/javascript": @{ @"icon": @"js-big", @"ext" : @[@"js"] },
@"text/html": @{ @"icon": @"ie-big", @"ext" : @[@"html", @"htm"] },
@"text/xml": @{ @"icon": @"xml-big", @"ext" : @[@"xml", @"xsl", @"xslt"] },
@"text/csv": @{ @"icon": @"csv-big", @"ext" : @[@"csv"] },
@"text/x-vcard": @{ @"icon": @"vcf-big", @"ext" : @[@"vcf"] },
@"text/calendar": @{ @"icon": @"vcf-big", @"ext" : @[@"ics", @"ical", @"ifb", @"icalendar"] },
@"text/vnd.wap.wml": @{ @"icon": @"txt-big", @"ext" : @[@"wml"] },
@"text/vnd.wap.wmlscript": @{ @"icon": @"txt-big", @"ext" : @[@"wmls"] },
@"text/x-c": @{ @"icon": @"code_big", @"ext" : @[@"c", @"cc", @"cxx", @"cpp", @"h", @"hh", @"dic"] },
@"text/x-java-source": @{ @"icon": @"code_big", @"ext" : @[@"java"] },
@"application/hta": @{ @"icon": @"ie-big", @"ext" : @[@"hta"] },
@"application/xml": @{ @"icon": @"xml-big", @"ext" : @[@"xml"] },
@"application/vnd.wap.wmlc": @{ @"icon": @"xml-big", @"ext" : @[@"wmlc"] },
@"application/vnd.wap.wmlscriptc": @{ @"icon": @"xml-big", @"ext" : @[@"wmlscriptc"] },
@"application/x-x509-ca-cert": @{ @"icon": @"txt-big", @"ext" : @[@"cer"] },
@"application/x-tcl": @{ @"icon": @"txt-big", @"ext" : @[@"tcl"] },
@"application/pdf": @{ @"icon": @"pdf-big", @"ext" : @[@"pdf"] },
@"application/vnd.openxmlformats-officedocument.wordprocessingml.document": @{ @"icon": @"msword_big", @"ext" : @[@"docx"] },
@"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": @{ @"icon": @"msexcel-big", @"ext" : @[@"xlsx"] },
@"application/vnd.openxmlformats-officedocument.presentationml.presentation": @{ @"icon": @"mspowerpoint-big", @"ext" : @[@"pptx"] },
@"application/msaccess": @{ @"icon": @"msaccess-big", @"ext" : @[@"mdb"] },
@"application/msword": @{ @"icon": @"msword_big", @"ext" : @[@"doc"] },
@"application/vnd.ms-word": @{ @"icon": @"msword_big", @"ext" : @[@"doc"] },
@"application/x-msexcel": @{ @"icon": @"msexcel-big", @"ext" : @[@"xls"] },
@"application/vnd.ms-excel": @{ @"icon": @"msexcel-big", @"ext" : @[@"xls", @"xlw", @"xla", @"xlc", @"xlm", @"xlt"] },
@"application/x-mspowerpoint": @{ @"icon": @"mspowerpoint-big", @"ext" : @[@"ppt"] },
@"application/vnd.ms-powerpoint": @{ @"icon": @"mspowerpoint-big", @"ext" : @[@"ppt", @"pwz", @"pps"] },
@"application/rtf": @{ @"icon": @"rtf-big", @"ext" : @[@"rtf"] },
@"application/x-font-ttf": @{ @"icon": @"ttf-big", @"ext" : @[@"ttf", @"ttc"] },
@"application/x-csh": @{ @"icon": @"code_big", @"ext" : @[@"csh"] },
@"application/x-sh": @{ @"icon": @"code_big", @"ext" : @[@"sh"] },
@"application/java-archive": @{ @"icon": @"archive-big", @"ext" : @[@"jar"] },
@"application/x-compress": @{ @"icon": @"archive-big", @"ext" : @[@"z", @"gz", @"tgz", @"taz", @"tar", @"arc", @"arj", @"lzh", @"zip"] },
@"application/x-gzip": @{ @"icon": @"archive-big", @"ext" : @[@"gz"] },
@"application/x-7z-compressed": @{ @"icon": @"7zip-big", @"ext" : @[@"7z"] },
@"application/x-tar": @{ @"icon": @"archive-big", @"ext" : @[@"tar", @"tgz", @"taz"] },
@"application/x-zip-compressed": @{ @"icon": @"archive-big", @"ext" : @[@"zip", @"lzh"] },
@"application/zip": @{ @"icon": @"archive-big", @"ext" : @[@"zip"] },
@"application/x-rar-compressed": @{ @"icon": @"rar-big", @"ext" : @[@"rar"] },
@"application/x-bittorrent": @{ @"icon": @"bt-big", @"ext" : @[@"torrent"] },
@"application/vnd.ms-htmlhelp": @{ @"icon": @"help-big", @"ext" : @[@"chm"] },
@"application/vnd.groove-help": @{ @"icon": @"help-big", @"ext" : @[@"ghf"] },
@"application/postscript": @{ @"icon": @"help-big", @"ext" : @[@"ai", @"eps", @"ps"] },
@"application/x-msmetafile": @{ @"icon": @"img_wmf-big", @"ext" : @[@"wmf", @"wmz", @"emf", @"emz"] },
@"image/x-wmf": @{ @"icon": @"img_wmf-big", @"ext" : @[@"wmf"] },
@"image/x-emf": @{ @"icon": @"img_wmf-big", @"ext" : @[@"emf"] },
@"image/tiff": @{ @"icon": @"img_tif_big", @"ext" : @[@"tif", @"tiff", @"cdr", @"cmx", @"dib", @"drw", @"dxf", @"gem", @"hgl", @"iff", @"img", @"jif", @"pgm", @"ppm", @"raw", @"rle", @"wmf"] },
@"image/x-icon": @{ @"icon": @"img-ico-big", @"ext" : @[@"ico"] },
@"image/vnd.microsoft.icon": @{ @"icon": @"img-ico-big", @"ext" : @[@"ico"] },
@"image/bmp": @{ @"icon": @"img_bmp_big", @"ext" : @[@"bmp"] },
@"image/vnd.wap.wbmp": @{ @"icon": @"img_bmp_big", @"ext" : @[@"wbmp"] },
@"image/x-xbitmap": @{ @"icon": @"img_bmp_big", @"ext" : @[@"xbmp"] },
@"image/png": @{ @"icon": @"img_png_big", @"ext" : @[@"png"] },
@"image/jpeg": @{ @"icon": @"img_jpg-big", @"ext" : @[@"jpeg", @"jpg", @"jpe"] },
@"image/gif": @{ @"icon": @"img-gif_big", @"ext" : @[@"gif"] },
@"image/svg+xml": @{ @"icon": @"img-svg_big", @"ext" : @[@"svg", @"svgz"] },
@"image/vnd.adobe.photoshop": @{ @"icon": @"img-gif_big", @"ext" : @[@"psd"] },
@"video/mpeg": @{ @"icon": @"video-big", @"ext" : @[@"mpg", @"mpeg", @"mpega", @"mpv2"] },
@"video/quicktime": @{ @"icon": @"quicktime-big", @"ext" : @[@"qt", @"mov"] },
@"video/mp4": @{ @"icon": @"video-big", @"ext" : @[@"mp4", @"mp4v", @"mpg4"] },
@"video/x-ms-wmv": @{ @"icon": @"video-big", @"ext" : @[@"wmv"] },
@"video/x-msvideo": @{ @"icon": @"video-big", @"ext" : @[@"avi"] },
@"video/h264": @{ @"icon": @"video-big", @"ext" : @[@"h264"] },
@"video/x-flv": @{ @"icon": @"video-big", @"ext" : @[@"flv"] },
@"application/vnd.rn-realmedia": @{ @"icon": @"realplay-big", @"ext" : @[@"rm"] },
@"application/vnd.rn-realmedia-vbr":@{ @"icon": @"realplay-big", @"ext" : @[@"rmvb"] },
@"audio/x-mpeg": @{ @"icon": @"mp3-big", @"ext" : @[@"mpga", @"mp2", @"mp2a", @"mp3", @"m2a", @"m3a"] },
@"audio/x-wav": @{ @"icon": @"mp3-big", @"ext" : @[@"wav"] },
@"audio/x-aiff": @{ @"icon": @"mp3-big", @"ext" : @[@"aif", @"aifc", @"aiff"] },
@"application/x-iso9660-image": @{ @"icon": @"iso-big", @"ext" : @[@"iso"] },
@"application/x-shockwave-flash": @{ @"icon": @"swf-big", @"ext" : @[@"swf"] },
@"message/rfc822": @{ @"icon": @"mail-big", @"ext" : @[@"nws", @"eml", @"mhtml", @"mht"] }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment