Skip to content

Instantly share code, notes, and snippets.

View gtuckerkellogg's full-sized avatar

Greg Tucker-Kellogg gtuckerkellogg

View GitHub Profile
@gtuckerkellogg
gtuckerkellogg / Zoom thirds.md
Last active November 12, 2021 06:53
virtual background for zoom camera adjustment

How to perfect your camera for virtual meetings and videoconferences

  1. Download the image below.
  2. Use the image as a virtual background.
  3. Adjust your camera to center your face horizontally. Put your eyeline at the upper third line.
  4. Turn off the virtual background, or use your preferred virtual background.
  5. Have a great Zoom meeting.
@gtuckerkellogg
gtuckerkellogg / ob-R.patch
Created September 23, 2021 01:52
patch ob-R.el to handle output with > characters from https://orgmode.org/list/87zgxc42qg.fsf@gmail.com/
--- ob-R.el.orig 2021-09-23 09:09:47.449131259 +0800
+++ ob-R.el 2021-09-23 09:44:13.727290603 +0800
@@ -38,6 +38,8 @@
(declare-function ess-eval-buffer "ext:ess-inf" (vis))
(declare-function ess-wait-for-process "ext:ess-inf"
(&optional proc sec-prompt wait force-redisplay))
+(declare-function ess-send-string "ext:ess-inf"
+ (process string &optional visibly message _type))

Keybase proof

I hereby claim:

  • I am gtuckerkellogg on github.
  • I am gtuckerkellogg (https://keybase.io/gtuckerkellogg) on keybase.
  • I have a public key ASAFpp962W5zzm2oxFsi7INSp_iT9m11pM98XY46VvIMtgo

To claim this, I am signing this object:

My sister Louise Kellogg was a leading geophysicist specialising in geodynamics: the study of how movement deep in the interior of the earth drives surface phenomena like the movement of the crust via plate tectonics. She discovered new structures deep in the earth's mantle, new connections between geophysics and geochemistry, and consequences of deep earth phenomena evident at the earth's surface. She built rich and useful mathematical and computational models to interrogate geodynamic processes. She was also devoted to equity and inclusion at all levels of science, and led by example. A very incomplete picture of her scientific contributions is on her Wikipedia page, her faculty page at UC Davis is here, a memorial page is here, and collected remembrances are here.

Louise occasiona

@gtuckerkellogg
gtuckerkellogg / patchwork-magick.R
Last active February 13, 2019 09:31
a patchwork of images and ggplot output
if (!('patchwork' %in% rownames(installed.packages()))) {
devtools::install_github('thomasp85/patchwork')
}
if (!('magick' %in% rownames(installed.packages()))) {
install.packages('magick')
}
if (!('cowplot' %in% rownames(installed.packages()))) {
@gtuckerkellogg
gtuckerkellogg / hunspell problem
Created November 22, 2016 07:39
hunspell throws errors when combining en_GB and en_MED
gtk@gtk-office
[~] hunspell -d en_US
Hunspell 1.3.3
adenocarcinoma
& adenocarcinoma 5 0: carcinoma, carcinogenic, carcinogen, architectonics, taxonomically
gtk@gtk-office
[~] hunspell -d en_US,en_MED
Hunspell 1.3.3
(defn svg-cell [] [:rect {:x 20 :y 20 :width 50 :height 40 :fill "black"}]
#_[:g
[:text {:text-anchor "middle" :alignment-baseline "middle"
:x 25 :y 20 :font-size 20 :font-family "Verdana" :fill
"black" } "fo"]
])
@gtuckerkellogg
gtuckerkellogg / *Org Src gtk.el
Last active November 15, 2016 22:33
Org mode caption export filter
(defun my-org-beamer-caption (contents backend info)
"Org export filter to allow use of #+CAPTION: keywords in
beamer org export, by removing floats using the \\captionof*
macro. Requires use of the caption package "
(when (eq backend 'beamer)
(replace-regexp-in-string
"\\\\caption\{" "\\\\captionof*{figure}{"
(replace-regexp-in-string
"\\\\end\{figure\}" "%"
(replace-regexp-in-string "\\\\begin\{figure\}" "%" contents)))))
@gtuckerkellogg
gtuckerkellogg / List of abbrevs in NUS thesis
Last active November 15, 2016 22:34
List of abbreviations in NUS thesis
%% If you want to include a list of abbreviations, uncomment the
%% following and put it somewhere in your preamble, like thesis-settings.tex.
\makeatletter
\@ifpackageloaded{nomencl}{}{\RequirePackage[refpage]{nomencl}}
\renewcommand{\nomname}{List of Abbreviations}
\makenomenclature%
\renewcommand{\pagedeclaration}[1]{~(page~#1)}
\makeatother

(org-add-link-type “TERM” nil (lambda (path desc format) (cond ((eq format ‘html) path ) ((eq format ‘latex) (format “%s\nomenclature{%s}{%s}” desc path desc)))))