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 / teamster-custom.css
Created August 29, 2013 21:12
For future reference: Our changes to the WooThemes Teamster CSS.
/* Let's get rid of the dotted borders -- yuck */
#wrapper { width: 960px; margin: 30px auto; background: #fff; border: 1px solid #333; }
#header{padding:0;clear:both;position:relative;border-bottom: 1px solid #333;}
#header-left { float: left; width: 250px; background: #a40000; border-right: 1px solid #fff; }
.section { border-bottom: 1px solid #333; }
.section-left { float: left; width: 250px; border-right: 1px solid #333; }
#author-slides-holder.open { display: block; border-top: 4px solid #d6d6d6; border-bottom: 1px solid #333; }
.author-description h3 { border-bottom:1px solid #333; padding: 0 0 15px; margin: 0 0 15px; }
#slides { border-bottom: 1px solid #333; }
@timlockridge
timlockridge / HTML Template
Last active May 11, 2016 23:13
Simple (pre-css) HTML page structure for COM372
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title-goes-here</title>
</head>
<body>
</body>
</html>
@timlockridge
timlockridge / gist:6918210
Created October 10, 2013 13:21
Basic markup menu
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Menu</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
### Keybase proof
I hereby claim:
* I am timlockridge on github.
* I am timlockridge (https://keybase.io/timlockridge) on keybase.
* I have a public key whose fingerprint is 6BE0 6F74 A97E 58B4 A5BC 342A 2AA4 731D 718C 9AF5
To claim this, I am signing this object:
@timlockridge
timlockridge / gist:186b0ca814a552a5ea8d
Created September 8, 2015 13:21
Austen | Plain text
The Project Gutenberg EBook of Pride and Prejudice, by Jane Austen
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org
Title: Pride and Prejudice
@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
~~~~~~~