Skip to content

Instantly share code, notes, and snippets.

View adrianwong's full-sized avatar
🤦‍♂️

Adrian Wong adrianwong

🤦‍♂️
  • Melbourne, Australia
  • 01:04 (UTC +10:00)
View GitHub Profile
@adrianwong
adrianwong / grandpa.pl
Created September 15, 2018 05:28
SWI-Prolog proof to "I'm My Own Grandpa"
husband(me, pretty_widow).
husband(my_dad, pretty_widow_daughter).
wife(X, Y) :- husband(Y, X).
father(me, bouncing_baby_boy).
father(my_dad, me).
father(my_dad, my_dad_new_son).
mother(pretty_widow, bouncing_baby_boy).
@adrianwong
adrianwong / mathjax-responsive-scaling.html
Last active December 6, 2019 23:08
Responsive scaling of MathJax formulae
<script type="text/javascript">
window.MathJax = {
jax: ["input/TeX", "output/CommonHTML"],
extensions: ["tex2jax.js"],
TeX: {
equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]
},
/* The MathJax API provides us with the ability to register
callbacks on signals broadcast during its startup sequence.