Skip to content

Instantly share code, notes, and snippets.

R_LIBS_USER="~/R"
@hrgentry
hrgentry / .latexmkrc
Created April 25, 2018 14:05 — forked from fnurl/.latexmkrc
my .latexmkrc that I use with MacTex
# Use xelatex instead of pdflatex
$pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode --shell-escape %O %S';
# Always create PDFs
$pdf_mode = 1;
# Use Skim.app to preview generated PDFs
$pdf_previewer = 'open -a Skim.app %S';
# Use continous mode by default
@hrgentry
hrgentry / tensorflow_1_7_high_sierra_gpu.md
Created June 17, 2019 01:44 — forked from Willian-Zhang/tensorflow_1_7_high_sierra_gpu.md
Install Tensorflow 1.7 on macOS High Sierra 10.13.4 with CUDA and stock python

Tensorflow 1.7 with CUDA on macOS High Sierra 10.13.4 for eGPU

Largely based on the Tensorflow 1.6 gist, and Tensorflow 1.7 gist for xcode, this should hopefully simplify things a bit.

Requirements

  • NVIDIA Web-Drivers 387.10.10.10.30.103 for 10.13.4
  • CUDA-Drivers 387.178
  • CUDA 9.1 Toolkit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hrgentry
hrgentry / gist:2a02951cb0ef2dedcfad88544ba40aa7
Created September 9, 2020 21:30 — forked from rich-iannone/gist:1da1ae7a7203958a0c5b1bd1d4b24017
This gt code allows you to make a summary table based on the `pizzaplace` dataset.
library(tidyverse)
library(paletteer)
library(gt)
pizzaplace %>%
mutate(type = case_when(
type == "chicken" ~ "chicken (pizzas with chicken as a major ingredient)",
type == "classic" ~ "classic (classical pizzas)",
type == "supreme" ~ "supreme (pizzas that try a little harder)",
type == "veggie" ~ "veggie (pizzas without any meats whatsoever)",
@hrgentry
hrgentry / installing_nvidia_driver_cuda_cudnn_linux.md
Created December 7, 2020 11:10 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.