Skip to content

Instantly share code, notes, and snippets.

View timlockridge's full-sized avatar

Tim Lockridge timlockridge

View GitHub Profile
#!/usr/bin/env ruby -wKU
# Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/)
# Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/)
# Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line)
# – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript)
# – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script)
# – make smart typography processing optional (set SMARTY to 'false' to bypass processing;
# note smart typography cannot be disabled in MMD 3.0 and 3.0.1
# – handle both smart typography processing scripts (ie. SmartyPants.pl)
<div class="loud-promo"><?php $file='promotext.swf'; $args=array('params' => array('height' => '335', 'width' => '900')); print swf($file, $args); ?></div>
@timlockridge
timlockridge / jekyll-bash-new-post
Last active March 24, 2018 01:00 — forked from pibby/jekyll-bash-new-post
This bash function script will setup a new Jekyll blog post in Markdown and open it for editing in Atom
function new-post() {
#!/bin/bash
# Original by Katie Harron - @pibby // Hacked on by Tim Lockridge
# This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Atom
echo "Post Title: "
read title
ptitle=${title// /-} # convert spaces in title to hyphens
plc=`echo "$ptitle" | tr '[:upper:]' '[:lower:]'` # convert title to lowercase
@timlockridge
timlockridge / DCC Helper
Created October 7, 2021 02:18 — forked from sturtus/DCC Helper
DCC Helper for Roll20.net
/*
==========================================
Roll20 Character Sheet Attribute Utilities
==========================================
!stats
!stats Atribute1, Attribute2, ...
!attrib attribute|newValue
!attrib
~~~~~~~