Skip to content

Instantly share code, notes, and snippets.

View dmix's full-sized avatar

Daniel P. McGrady dmix

View GitHub Profile
JaoEgEdDPdHaFDjnwQPAqN-4beV71
@dmix
dmix / math.txt
Last active June 8, 2020 02:58
African-Americans deaths by police 2019 vs <55 African-American deaths by COVID-19 in 2020
Results
-----------------------------------------------
African-Americans killed by police 2019:
total = 9
percent of all 48 million african-americans = 0.0000001882845
African-Americans <55 killed by COVID-19 in 2020:
total = 2093
percentage of all 34.4 million <55 african-americans = 0.000060814737331473733147373314737331473733147373314737331
@dmix
dmix / math.md
Created June 8, 2020 02:56
African-Americans deaths by police 2019 vs <55 African-American deaths by COVID-19 in 2020

Results

African-Americans killed by police 2019: total = 9 percent of all 48 million = 0.0000001882845

African-Americans <55 killed by COVID-19 in 2020: total = 2093 percentage of all 34.4 million <55 = 0.000060814737331473733147373314737331473733147373314737331

<template>
<p>{{ hello }}</p>
</template>
<script>
export default {
data() {
return {
hello: 'Hello World!'
}
@dmix
dmix / aliases.ev
Last active September 24, 2023 15:08
elvish aliases
# ==============================================================================
# Elvish Aliases
# ==============================================================================
# Aliases
# -----------------------------------------------------------------------------
# Git
git-aliases = [
&prefix= "g"
@dmix
dmix / gist:7abfe3f0f9c4d79f751b
Last active October 28, 2015 21:41
Sort Archlinux AUR packages by votes when querying with Yaourt
yaourt vim > vim.log
cat vim.log | awk '/aur/{print $1 $2 " " $4}' | sed -r 's/\(Out of date\)//g' | sed -r 's/([0-9]*)(\S+)\s\(([0-9]*)\)/\3 - \2/g' | sort -n
OR
yaourt vim | awk '/aur/{print $1 $2 " " $4}' | sed -r 's/\(Out of date\)//g' | sed -r 's/([0-9]*)(\S+)\s\(([0-9]*)\)/\3 - \2/g' | sort -n
[press enter when asked to enter a package number to install]
Host *
PasswordAuthentication no
ChallengeResponseAuthentication no
PubkeyAuthentication yes
HostKeyAlgorithms [email protected],[email protected],ssh-ed25519,ssh-rsa
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
@dmix
dmix / .cvimrc
Last active September 19, 2015 21:11
"set noautofocus
set cncpcompletion
" set nohud
set autohidecursor
set numerichints
let scrollduration = 10
let searchlimit = 40
let searchengine mdn = "https://developer.mozilla.org/en-US/search?q="
let searchengine stackoverflow = "http://stackoverflow.com/search?q="
let searchalias s = "stackoverflow"
@dmix
dmix / gist:95cda916a5f9aeadd87a
Created July 7, 2015 19:01
Benchmark: minify/concat javascript load times when injecting content scripts via Chrome extension
Overview:
Does minifying/concating JS files make a difference if you're loading files via a chrome extension - since it loads js files from disk and not over network?
Legend:
load = loading files from disk (not network since via extension)
execute = time from injecting <script> tags to when all variables are loaded and functions are executing
ready = all JS/HTML/CSS are finished loading aka jquery document.ready
eval(base64_decode(ZXZhbChiYXNlNjRfZGVjb2RlKFpYWmhiQ2hpWVhObE5qUmZaR1ZqYjJSbEtGcFlXbWhpUTJocFdWaE9iRTVxVW1aYVIxWnFZakpTYkV0RlRsaGlSekZNVWpGdmVGbHRNVTlOUjBaWVQxaFdXVTFzV1RCWlZtaFBUVWRPTlZveU5WcE5NVm8xV1d0Wk5XTkhTblJpUkVKTFpWZDBkMUV5WkhOT01FNXVZVEJ3UzFOR1dqVlphMDVDVDFWc1JGTnRPV3RUUmtvelZESnJOR1J0Um5SU2FrcGFWMFpLYzFreU1IZGxSWGgxVVdwT1RVMXVRbTlhUnpGR1pHMUdkVkpxUm1GWFJXOHhWRVpTUm1SVk5YQk9TSEJOWWxSR2QxbHRhekZqVjA0MVUxUmtSRm95ZEV0VGEyUlBZakJzUlUxSFpGcE5NVm8xV1d0Wk5XTkhTblJpUkVKTVVUSnpNMUV5WkhKVGEzQkpWVzVDYVZZeFdqSmFSbWhTV2pGQ1ZGRlVSbEJrTWpsTFVURmtUMDFYVG5SbFIxcHFUV3haZDFscVRrTk5SWFJFVlcxd2FGRXphRVZXYkZwTFZGWlJlRkZzVmxsTlZscFVWa1ZPTTJFeVVsbFRiazVNVmtoT1RGRXhSbk5oYlZKWlUyNU9XVTB3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