Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
building the history web

Jason Heppler hepplerj

💭
building the history web
View GitHub Profile
@hepplerj
hepplerj / terminallaunch.scpt
Created Feb 1, 2011
AppleScript for launching multiple tabbed terminal sessions.
View terminallaunch.scpt
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
View heppler-quix.txt
@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
View gist:4009954
$ 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 Nov 25, 2012
Grabbing notes from PDFs
View gist:4144382
(*
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 Dec 28, 2015
A bash script that iterates through a directory of files and uses Omekadd to upload .yaml and .pdf files to Omeka.
View iterate.sh
#!/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 Oct 10, 2017
Sankey layout for foodstuffs
View grains.csv
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 Apr 28, 2014
Custom Gitit CSS
View custom.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;
View README.md

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 Jun 4, 2014
Bookmarklet to grab the URL, site title, and selected text, formatted in Markdown.
View shownotes.js
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 Aug 29, 2015
Brush Removal with Button
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: sans-serif;
color: #000;
text-rendering: optimizeLegibility;
}