Skip to content

Instantly share code, notes, and snippets.

View dylan-k's full-sized avatar

Dylan Kinnett dylan-k

View GitHub Profile
@dylan-k
dylan-k / story.latex
Last active April 12, 2024 11:01
a pandoc template to make PDF files with standard manuscript formatting
% -----------------------------------------------------------------------------
%
% STANDARD MANUSCRIPT FORMAT LaTeX TEMPLATE FOR PANDOC
%
% NOTE: This template has a newer version:
% https://github.com/dylan-k/Palabra/blob/master/pandoc-templates/story.latex
% Comments and Pull Requests are Welcome
%
% -----------------------------------------------------------------------------
@dylan-k
dylan-k / poem.md
Last active March 19, 2024 15:30
Example of a poem in markdown with YAML frontmatter
title author
Huntress
H. D.

Come, blunt your spear with us,
our pace is hot
and our bare heels
in the heel-prints—
we stand tense—do you see—

@dylan-k
dylan-k / latex.template
Created April 1, 2022 13:39 — forked from michaelt/latex.template
Template for Pandoc LaTeX File
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@dylan-k
dylan-k / roots-plugins.md
Created May 12, 2015 14:30
Recommended WordPress Plugins from the makers of Roots and Sage Wordpress Themes
Plugin Name Plugin Description
Gravity Forms With Gravity Forms you can build complex, interactive contact forms in minutes.
WPML WPML makes it easy to build multilingual sites and run them. Roots already includes translations for:
English, Spanish, French, Italian, Dutch, Brazilian Portuguese, Macedonian, Finnish, Danish, and Turkish.
WordPress SEO Yoast's all in one SEO solution: titles, meta descriptions, XML sitemaps, breadcrumbs & more.
WP Super Cache WP Super Cache is a static caching plugin that generates HTML files.
W3 Total Cache Improve site performance and user experience via caching.
Analytics 360 Pull Google Analytics and M
@dylan-k
dylan-k / 00-vim-keys.md
Last active November 16, 2022 16:55
Make Vim Use "Normal" Keyboard Shortcuts

Make Vim use Normal Keyboard Shortcuts

All my life I've used VXCZ keys for paste, cut, copy, undo. To me, that's what's "normal." There's a name for that style of key bindings. They're called Common User Access, or CUA.

I'd like to use vim as the text editor for the very fast writing laptop I'm putting together. My goal is startup speed with low resource usage, and vim has got that. I'm just getting started and there's a lot to learn...

But, no, thank you, I don't want to learn all-new keyboard shortcuts, because my goal is speed and learning them will slow me down and worse, it'll frustrate me, and besides I don't need to learn that right now. (I'll wait while some computer fundamentalists contain their emotions or depart.)

I'm not against learning new shortcuts gradually over time, and I'm also not against taking some time to set it up so I don't have to, at least not at first, perhaps not ever. After all, aren't we supposed to be able to customi

@dylan-k
dylan-k / regex.md
Last active November 16, 2022 16:54
Useful Regular Expressions
@dylan-k
dylan-k / filename-firstline.sh
Created September 12, 2013 00:55
rename each text file according to its first line of text
#A shell script that will rename all the text files in a directory
#each file will be named with the first line of text from that file
for file in *
do
# Avoid renaming diretories!
if [ -f "$file" ]
then
newname=`head -1 $file`
if [ -f "$newname" ]
@dylan-k
dylan-k / README-Template.md
Last active April 1, 2022 13:37 — forked from PurpleBooth/README-Template.md
Template for README file

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running.

@dylan-k
dylan-k / yaml-bibliography-template.yml
Last active April 1, 2022 13:37
Template for Bibliography in YAML
# YAML Bibliography Template
-
title: "x"
author: "me"
genre: "x"
publication: "x"
publisher: "x"
location: "x"
date: "x"
url: "x"