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 / sublime-keys.json
Created March 30, 2016 14:45
sublime key bindings
[
{ "keys": ["super+shift+u"], "command": "sftp_upload_file" },
{ "keys": ["super+alt+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+t"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }
]
@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 / install-sage.sh
Last active August 29, 2015 14:19
steps i took to install and use the Sage theme for Wordpress
# grab a copy of Sage from github
$ git clone --depth=50 --branch=master git://github.com/roots/sage.git roots/sage
# move into the directory where Sage was installed
$ cd roots/sage
$ npm install -g bower gulp jscs # Sage tests include the install for jscs this way. docs don't mention it.
# now check to ensure that you have the requirements installed, with prerequisite versions
# optional: $ composer --version
$ php -v && node -v && gulp -v && bower -v
# you should have:
# PHP >= 5.4.x (test uses 5.6.5)
@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"
@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 / story.md
Last active August 29, 2015 14:14
example of a markdown file for experiments learning to convert markdown to PDF, using a LaTeX document class.
title author wordcount date
Document Title
Firstname Lastname
1000
2015-01-24

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Donec gravida quis augue in tincidunt. Ut pulvinar ac sapien venenatis dignissim. Fusce vulputate congue dui, at dictum risus congue vel. Vivamus rutrum commodo nunc, sed elementum velit consectetur nec. Aenean sit amet tellus non nisi vulputate ornare. Vestibulum in nibh cursus, volutpat leo in, auctor lacus. Donec euismod suscipit nunc sed tempus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ullamcorper est in erat efficitur congue. Integer ullamcorper ac lorem non maximus. Aliquam ut placerat nisl, eget euismod ante.

Section 1

@dylan-k
dylan-k / readings.yml
Last active June 29, 2019 16:51
Readings and Performances by Dylan Kinnett
# Readings and Performances by Dylan Kinnett
# more info: www.nocategories.net
# gist: https://gist.github.com/dylan-k/cc11e9e5a66ac7b85601
# reference: http://pandoc.org/MANUAL.html#citations
#
# EXAMPLE DATA STRUCTURE
# - event: "Title of event"
# genre: "Spoken Word Performance"
# location: "Venue, City, State"
# date: yyyy-mm-dd
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Masonry Template</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700">
@dylan-k
dylan-k / portraits-landscapes-notes.md
Last active August 29, 2015 14:08
portraits and landscapes note

To decide whether the chapbook is "ready" or not, I read through every poem in the manuscript and for each I assigned a value of "yes", "no", or "maybe". Here are the results. I would like to replace the pieces marked "no" with others that are more similar to the pieces marked "yes".

yes (5)

Beautiful Mannequins                                        09
Ghost City                                                  14
The New World                                               18

Walls 27

#!/usr/bin/ruby
# Sifttter: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com>
# Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com>
#
# Notes:
# * Uses `mdfind` to locate a specific folder of IFTTT-generated text files changed in the last day
# * The location of your folder should be hardcoded in line 53
# * Scans leading timestamps in each line matching today's date
# * Does not alter text files in any way
# * Changes ampersand ('&') to 'and' so the script keeps running