Skip to content

Instantly share code, notes, and snippets.

@adatoo
adatoo / mime.csv
Last active December 11, 2021 22:24 — forked from jimschubert/mime.csv
List of more common mime types from MDN, in CSV and TSV
Name MIMEType Extension Description
aac audio/aac .aac AAC audio file
abw application/x-abiword .abw AbiWord document
arc application/octet-stream .arc Archive document (multiple files embedded)
avi video/x-msvideo .avi AVI: Audio Video Interleave
azw application/vnd.amazon.ebook .azw Amazon Kindle eBook format
bin application/octet-stream .bin Any kind of binary data
bz application/x-bzip .bz BZip archive
bz2 application/x-bzip2 .bz2 BZip2 archive
csh application/x-csh .csh C-Shell script
@adatoo
adatoo / package.json
Created December 22, 2019 18:36
Default Prettier Configuration in a React App
"devDependencies": {
"prettier": "^1.19.1"
},
...
"scripts": {
...
"format": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|html|css|md)\""
}
...
"prettier": {
@adatoo
adatoo / password-strength.js
Created February 19, 2014 18:30
Password Strength
// Extracted from http://www.geekwisdom.com/js/passwordmeter.js
// See also: http://www.passwordmeter.com
/* ************************************************************
Created: 20060120
Author: Steve Moitozo <god at zilla dot us> -- geekwisdom.com
Description: This is a quick and dirty password quality meter
written in JavaScript so that the password does
not pass over the network.
License: MIT License (see below)
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><title>Dead Centre</title>
<style type="text/css" media="screen">
<!--
body {
color: white;
background-color: #003;
margin: 0px
}