Skip to content

Instantly share code, notes, and snippets.

View hepplerj's full-sized avatar
💭
building the history web

Jason Heppler hepplerj

💭
building the history web
View GitHub Profile
@hepplerj
hepplerj / terminallaunch.scpt
Created February 1, 2011 21:56
AppleScript for launching multiple tabbed terminal sessions.
tell application "Terminal"
activate
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh jheppler@segonku.unl.edu" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh jheppler@jetson.unl.edu" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
@hepplerj
hepplerj / heppler-quix.txt
Created May 25, 2012 04:56
Jason's Quix file
@Searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
jh https://duckduckgo.com/site:jasonheppler.org%20%s JasonHeppler.org (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
jq http://api.jquery.com/?ns0=1&s=%s&go= Search jQuery API docs
@hepplerj
hepplerj / gist:4009954
Created November 4, 2012 03:10
Error with gitit
$ cabal install gitit
Resolving dependencies...
cabal: cannot configure happstack-server-7.1.0. It requires directory >=1.2
For the dependency on directory >=1.2 there are these packages:
directory-1.2.0.0 and directory-1.2.0.1. However none of them are available.
directory-1.2.0.0 was excluded because process-1.1.0.1 requires directory
==1.1.0.2
directory-1.2.0.0 was excluded because hpc-0.5.1.1 requires directory
==1.1.0.2
directory-1.2.0.0 was excluded because directory-1.1.0.2 was selected instead
@hepplerj
hepplerj / gist:4144382
Created November 25, 2012 17:16
Grabbing notes from PDFs
(*
Script courtesy of Walton Jones, modified slightly
http://drosophiliac.com/2012/09/an-academic-notetaking-workflow.html
Original script by John Sidiropoulos
http://www.organognosi.com/export-skim-notes-according-to-their-highlight-colors/
*)
@hepplerj
hepplerj / iterate.sh
Last active December 28, 2015 15:39
A bash script that iterates through a directory of files and uses Omekadd to upload .yaml and .pdf files to Omeka.
#!/bin/bash
# Written by Jason A. Heppler
# Iterate through the base directory, find all .yaml files and .pdf files, and
# upload these files to Omeka. For use with Caleb McDaniel's Omekadd Python
# script: https://github.com/wcaleb/omekadd
#
# Last Modified: 2013-11-17
# The script assumes the .yaml and .pdf share the same filename, so the two can
@hepplerj
hepplerj / grains.csv
Last active October 10, 2017 05:58
Sankey layout for foodstuffs
unit category use translation item subcategory value date source
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße .5 1640
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße 178 1641
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße .5 1642
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße .5 1643
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße 60 1644
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße 204 1645
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße 456 1646
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße .5 1647
Stoff (Solids) Grain millet/sorghum groats Grütze Hirße .5 1648
@hepplerj
hepplerj / custom.css
Created April 28, 2014 01:47
Custom Gitit CSS
@import url("screen.css"); /* default gitit screen styles */
@import url("hk-pyg.css"); /* for syntax highlighting */
/* My custom Gitit CSS styling, in part based on Twitter Bootstrap */
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;

A quick and dirty script to check out each commit of a writing project and find the word count of each Markdown file at that point in time. You might want to use this on a clone of your writing repository. NO WARRANTY EXPRESS OR IMPLIED.

@hepplerj
hepplerj / shownotes.js
Created June 4, 2014 15:47
Bookmarklet to grab the URL, site title, and selected text, formatted in Markdown.
javascript:(function(s)%7Btry%7Bs%3Ddocument.selection.createRange().text%7Dcatch(_)%7Bs%3Ddocument.getSelection()%7Dprompt(%27Copy text%27,%27%5B%27%2Bdocument.title%2B%27%5D(%27%2Blocation%2B%27)%5Cn%5Cn> %27%2Bs)%7D)()
@hepplerj
hepplerj / index.html
Last active August 29, 2015 14:03
Brush Removal with Button
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: sans-serif;
color: #000;
text-rendering: optimizeLegibility;
}