Skip to content

Instantly share code, notes, and snippets.

View gryan11's full-sized avatar

Gabriel Ryan gryan11

View GitHub Profile
@gryan11
gryan11 / Makefile
Created November 3, 2019 16:44
Toolkit for compiling markdown files to nicely formatted pdfs with pandoc
MD_FILES := $(wildcard *.md)
PDF_TARGETS = $(MD_FILES:.md=.pdf)
.PHONY: all
all: $(PDF_TARGETS)
%.pdf : %.md
pandoc -s $< -o $@ -t latex --highlight-style=tango -H head.tex
@gryan11
gryan11 / df_latex.py
Created September 17, 2019 00:55
Python tool for converting csvs to latex tables.
import pandas as pd
import numpy as np
import sys, argparse
from numbers import Number
def df_to_latex(df, digits=2, pcols=None):
table = "\\begin{tabular}{l "
if pcols:
for _ in range(len(df.columns)):
@gryan11
gryan11 / gs65stealth_linux_setup.md
Last active February 9, 2025 06:05
Notes on setting up MSI GS65 Stealth as dual boot Linux Laptop

Linux Setup on MSI GS65 Laptop

Preliminary Setup

Make the following usb sticks and drives on windows:

  1. Ubuntu install usb stick
  2. System recovery usb stick
  3. System backup image on usb hard drive

windows setup