How to use Pelican on GitHub Pages 
Author: Josef Jezek
sudo apt-get install python-setuptools
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# blookup.py | |
# by Caleb McDaniel <http://wcm1.web.rice.edu> | |
# Uses ottobib.com and isbndb.com to turn an author-title search string | |
# into a formatted bibliographic citation. | |
# Example: | |
# blookup.py "blight race and reunion" |
#!/usr/bin/env ruby | |
# everwatch.rb by Brett Terpstra, 2011 | |
# http://brettterpstra.com/2011/11/14/marked-scripts-nvalt-evernote-marsedit-scrivener/ | |
# http://support.markedapp.com/kb/how-to-tips-and-tricks/marked-bonus-pack-scripts-commands-and-bundles | |
# Updated for latest Evernote configuration (2013) and quick launch of Marked.app - spetschu | |
# | |
# Watch Evernote for updates and put the current content of the editor into a preview file for Marked.app | |
# <http://markedapp.com> | |
require 'shellwords' |
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/5834741/raw/grablinks.js?x="+(Math.random());})(); |
#!/bin/bash | |
for img in *.tif; do tesseract $img $img hocr; done | |
for img in *.tif; do hocr2pdf -i $img -o $img.pdf < $img.html; done | |
pdfconcat -o merged.pdf ./*.pdf |
# List all of the notebooks in the user's account | |
notebooks = noteStore.listNotebooks(authToken) | |
print("Found ", len(notebooks), " notebooks:") | |
#calculate processed blog count currently | |
processedBlogCount = 0 | |
for notebook in notebooks: | |
print(" * ", notebook.name) |
Author: Josef Jezek
sudo apt-get install python-setuptools
(* EXPORT ALL SKIM NOTES TO A TEXTEDITOR WITH MARKDOWN REFERENCE LINKS | |
-- Stephen Margheim | |
-- 16 July 2013 | |
-- open source | |
This script will (as the title suggests) export all of you Skim notes to a text editor (either TextEdit or TextMate) in Markdown format, with reference style links. It relies on the GENERATE TOP 3 NOTES WITH SYSTEM URL script that will put 3 notes at the top of the PDF with linking information. | |
To change which text editor it exports to, change the "theEditor" property. It can be either "TextMate" or "TextEdit". | |
When launched, the script will ask you if the current PDF is a Primary Source or a Secondary Source. Your choice will determine the text values for the 6 different highlight colors. Of course, you can change any and/or all of the text values to what you wish. |
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://cdn.rawgit.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})(); |
#!/usr/bin/sh | |
#Adapted by Ben Schmidt from Barry Hubbard's code at | |
#http://www.barryhubbard.com/articles/37-general/74-converting-a-pdf-to-text-in-linux | |
#to convert into a folder of text files, each one representing a page. | |
#This takes pdfs from the pdfs folder, writes tif files to the images folder, and writes text to the texts folder. | |
#each pdf gets a _folder_ in each of the other two. | |
mkdir -p texts | |
mkdir -p images |
// Joins path segments. Preserves initial "/" and resolves ".." and "." | |
// Does not support using ".." to go above/outside the root. | |
// This means that join("foo", "../../bar") will not resolve to "../bar" | |
function join(/* path segments */) { | |
// Split the inputs into a list of path commands. | |
var parts = []; | |
for (var i = 0, l = arguments.length; i < l; i++) { | |
parts = parts.concat(arguments[i].split("/")); | |
} | |
// Interpret the path commands to get the new resolved path. |