I hereby claim:
- I am drewsberry on github.
- I am drewsberry (https://keybase.io/drewsberry) on keybase.
- I have a public key whose fingerprint is 32AE 9006 2229 F440 8D5A 3716 F68B AB3B 4A08 2356
To claim this, I am signing this object:
% New definition of square root: | |
% it renames \sqrt as \oldsqrt | |
\let\oldsqrt\sqrt | |
% it defines the new \sqrt in terms of the old one | |
\def\sqrt{\mathpalette\DHLhksqrt} | |
\def\DHLhksqrt#1#2{% | |
\setbox0=\hbox{$#1\oldsqrt{#2\,}$}\dimen0=\ht0 | |
\advance\dimen0-0.2\ht0 | |
\setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% | |
{\box0\lower0.4pt\box2}} |
# You only need to change these top two lines | |
BASE=your-main-file | |
DEP=your-dependencies.tex | |
SRC=$(BASE).tex | |
PDF=$(BASE).pdf | |
LATEXMK=latexmk -pdf -pdflatex="pdflatex --shell-escape %O %S" | |
LATEXMKCONT=latexmk -pvc -pdf -pdflatex="pdflatex --shell-escape --interaction=nonstopmode %O %S" | |
TMP=$(BASE).pdfsync *~ *.tmp *.bbl *.blg *.aux *.end *.fls *.log *.out *.fdb_latexmk |
sudo sed -i '/Group\]\|Desktop Entry/a StartupWMClass=Google-chrome-stable' /usr/share/applications/google-chrome.desktop && \ | |
rm ~/.cache/docky/docky.desktop.*.cache && \ | |
killall docky && \ | |
docky &> /dev/null && \ | |
disown |
#!/bin/sh | |
# This was put here by Drew Silcock on 16th July 2015 in an attempt to fix | |
# Wi-Fi issues on Ellen's Samsung laptop. It should be placed under | |
# `/etc/pm/sleep.d/`. | |
case "${1}" in | |
resume|thaw) | |
service network-manager stop | |
killall wpa_supplicant |
#include <windows.h> | |
#include <atlstr.h> | |
#include <cstdlib> | |
#define NOTUSED(var) (void)(var) | |
#define FLAG_STR "--help" | |
int CALLBACK WinMain( | |
_In_ HINSTANCE hInstance, | |
_In_ HINSTANCE hPrevInstance, |
Dir | Rename-Item -NewName { $_.name -replace "orig", "repl" } |
#!/bin/sh | |
convert_path="C:/Program Files/ImageMagick/convert.exe" | |
target_path="." | |
target_ext="png" | |
echo "Warning, this will overwrite the current images." | |
read -r -p "Do you want to continue? [y/N] " response | |
response=${response,,} # tolower |
import re | |
import execjs | |
def find_equations(string): | |
""" Take in a string, and convert everything between $ ... $ into an inline | |
equation and everything between $$ ... $$ into a centred equation. """ | |
doubledollar = re.compile(ur"\$\$([^$]+)\$\$") | |
singledollar = re.compile(ur"(?<![\$])\$([^$]+)\$(?!\$)") |
I hereby claim:
To claim this, I am signing this object: