Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
💻 🔨 🔥 😆

Matty G meawoppl

💭
💻 🔨 🔥 😆
View GitHub Profile
@meawoppl
meawoppl / build.gradle
Created Dec 14, 2020
Add MathJax to JavaDoc in Gradle
View build.gradle
javadoc {
configure(options) {
options.addBooleanOption("-allow-script-in-comments",true)
options.header = "<script type=\"text/javascript\" async" +
" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML\">" +
"</script>"
}
}
// Then just use $$ e^{/pi i} + 1 == 0 $$ wherever the mood so strikes.
@meawoppl
meawoppl / thumbnailer.py
Last active Oct 11, 2020
Nautilus Thumbnail Generator. Python 3 scalable and fast.
View thumbnailer.py
#!/usr/bin/python3
import concurrent.futures
import hashlib
import os
import sys
import gi
gi.require_version('GnomeDesktop', '3.0')
from gi.repository import Gio, GnomeDesktop
View gist:6ba5ba2596b394d48875cda4fd8dfb1d
x="if(t%2)else";python3 -c"[print(t>>15&(t>>(2$x 4))%(3+(t>>(8$x 11))%4)+(t>>10)|42&t>>7&t<<9,end='')for t in range(2**20)]"|aplay -c2 -r4