Skip to content

Instantly share code, notes, and snippets.

  • Write. A letter, a note, a poem, a story, directions, a warning.
  • Draw.
  • Origami. Make something decorative of the paper.
  • Paper airplane.
  • Name tag, or table tent
  • Paper football
  • Paper cut weapon
  • Fake telescope
  • Bad napkin
  • Funnel for dry items
@stevenklise
stevenklise / Task.rb
Created October 2, 2011 19:00
A daemon to maintain a telnet session for a web client. Looks for Tasks that are not done, sends the command to the telnet client and then marks the Task as done.
class Task
include DataMapper::Resource
property :id, Serial
property :done, Boolean
property :command, String
end
@stevenklise
stevenklise / Gemfile
Created November 4, 2011 23:46
URL rewrites
source 'rubygems'
gem 'rack/jekyll'
gem 'rack/rewrite'
@stevenklise
stevenklise / Last Accessed Last Modified.txt
Created November 8, 2011 01:28
Python generated poem
# Good Evening
this this I wrote this I wrote I wrote this is a poem
It's been 3 day and 21 hours
The poem might be five lines.
# Last accessed 2011-05-06 18:29:08
# This is not BROOKLYN
There the sun rises at 5:46 am.
# This is not RUDOLPH
@stevenklise
stevenklise / truecause.coffee
Created January 10, 2012 19:39
Hubot script to take a phrase and make it true.
# Take arguments and make them a true thing on the internet
#
# http://true-cause-i-read-it-on-the-internet.net/
#
# make true <string> - Add statement to a url on true-cause-i-read-it-on-the-internet.net
module.exports = (robot) ->
robot.hear /make true (.+)/i, (msg) ->
assertion = msg.match[1] or 'cats-are-your-friends'
assertion = assertion.split(' ').join('-')

Uploading The New Batch of OCR Texts

In this document I use bold text to denote the name

There are 1,188 files in the ThesisTXT_round2 folder, and currently 1,094 Thesis records on itparchive.com. This mismatch is based on file names that were not properly parsed by the original upload script.

Each Thesis can have multiple Documentations. A Documentation stores the URL of the PDF, some admnistrative information about the state of the PDF and a text field titled paper with the contents of the corresponding .txt file. We will assume that all of the text files from the second round of OCR are better than all of the first round. And since some Documentations might not match to the new text files if we relied on the new text file replacing the contents of paper there could be a few Documentations which don't have their paper field updated. So the first step is to erase the paper field on every Documentation.

Out with the Old

@stevenklise
stevenklise / reset.css
Created March 7, 2012 22:42
Eric Meyer's CSS Reset
# Copy & Paste Code
## Eric Meyer's Reset
############################################
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
@stevenklise
stevenklise / todo.md
Created March 20, 2012 03:23
Todo list for my thesis

THESIS TODO

An annotated to do list for itpirl.com sorted by priority (top is highest priority).

TODO

  • Fix Calendar Authentication : Calendar events are broken when hosted on Heroku.
  • Event view : Sorting & time formatting of event views, categorization, filtering
  • Initiate IRC Client per user : All chat traffic is going through one instance of the IRC Client. This is non ideal. Instantiate a new client for every visiter to the website.
  • User List : Key to knowing who is in the room
@stevenklise
stevenklise / hack.sh
Created April 1, 2012 14:58 — forked from noahcrowley/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@stevenklise
stevenklise / parse_csv_to_hubot.rb
Created May 8, 2012 04:06
Save a csv of presentation times names and urls to Hubot's Redis brain
require 'csv'
require 'json'
require 'redis'
require 'uri'
# Open the csv as a csv.
csv = CSV.read('./thesis.csv')
# Outputs as a 2D array but I want a hash to turn in to JSON.
thesisweek = {