Skip to content

Instantly share code, notes, and snippets.

@jcschefer
jcschefer / NoteTaking.md
Created February 6, 2019 04:26
A Vim-Markdown-PDF Note Taking System

A Markdown/Makefile/Vim Notetaking Solution

If you're anything like me, you have a hard time taking notes on your computer. I would prefer to type all my notes in Vim but when it comes to reading, I'd much rather see a PDF. Hence the need for a better note taking system. My requirements for the tool were as follows:

  1. I should be able to store my Markdown in a different directory than the compiled output to help with tab completion.
  2. I should be able to compile all of my Markdown notes into PDFs separately and only and only when sources have been updated.
  3. I want to be able to preview what the PDF will look like while taking notes, without exiting Vim.

In the end, my solution contained a Makefile, a Python compilation script, and an additional command in my .vimrc file:

@jcschefer
jcschefer / destructortest.cpp
Created September 12, 2018 20:55
A Sample Tester for List Destructors
#include <iostream>
#include <string>
using namespace std;
#include "List.h"
int main () {
List* l;
int n = 0;
while(true) {