Skip to content

Instantly share code, notes, and snippets.

View jaysnoddy's full-sized avatar

Jay Snoddy jaysnoddy

View GitHub Profile
@jaysnoddy
jaysnoddy / jpylyzer-menu.reg
Created June 5, 2021 08:59 — forked from bitsgalore/jpylyzer-menu.reg
Add Windows context menu items
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\jpylyzer]
[HKEY_CLASSES_ROOT\*\shell\jpylyzer\command]
@="\"C:\\jpylyzer\\jpylyzer.exe\" \"%1\" > \"%1.xml\""
@jaysnoddy
jaysnoddy / Search my gists.md
Last active July 3, 2020 10:53 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

user:jaysnoddy

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

@jaysnoddy
jaysnoddy / Makefile.pandoc Idea
Created June 12, 2020 15:13 — forked from sudarkoff/Makefile.pandoc
Makefile for converting Markdown to various formats with Pandoc, TeX and kindlegen
BUILD_DIR := gen
# pandoc is a handy tool for converting between numerous text formats:
# http://johnmacfarlane.net/pandoc/installing.html
PANDOC := pandoc
# pandoc options
# Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts
PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book
PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1
@jaysnoddy
jaysnoddy / MakefileIdea
Last active June 12, 2020 15:11 — forked from lmullen/Makefile
PDF slides and handouts using Pandoc and Beamer
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md))
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md))
all : $(SLIDES) $(HANDOUTS)
%.md.slides.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -o $@
%.md.handout.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -V handout -o $@
@jaysnoddy
jaysnoddy / gist:e30fc2001864239a7bf2bca7ceeca256
Created June 12, 2020 15:06 — forked from lmullen/gist:3767386
Make all markdown files in directory into PDFs
# Produce PDFs from all Markdown files in a directory
# Lincoln Mullen | http://lincolnmullen.com | [email protected]
# List files to be made by finding all *.md files and appending .pdf
PDFS := $(patsubst %.md,%.md.pdf,$(wildcard *.md))
# The all rule makes all the PDF files listed
all : $(PDFS)
# This generic rule accepts PDF targets with corresponding Markdown
@jaysnoddy
jaysnoddy / Makefile
Created June 8, 2020 15:57 — forked from kristopherjohnson/Makefile
Makefile that uses Pandoc to generate HTML, PDF, DOCX, etc. from Markdown source files
# Makefile
#
# Converts Markdown to other formats (HTML, PDF, DOCX, RTF, ODT, EPUB) using Pandoc
# <http://johnmacfarlane.net/pandoc/>
#
# Run "make" (or "make all") to convert to all other formats
#
# Run "make clean" to delete converted files
# Convert all files in this directory that have a .md suffix
@jaysnoddy
jaysnoddy / pandoc.Makefile
Created June 8, 2020 15:56 — forked from bertvv/pandoc.Makefile
Makefile for Markdown -> PDF using pandoc
# Generate PDFs from the Markdown source files
#
# In order to use this makefile, you need some tools:
# - GNU make
# - Pandoc
# - LuaLaTeX
# - DejaVu Sans fonts
# Directory containing source (Markdown) files
source := src