Skip to content

Instantly share code, notes, and snippets.

View ejknapp's full-sized avatar

Eric Knapp ejknapp

View GitHub Profile
@ejknapp
ejknapp / gist:1997969
Created March 8, 2012 01:52
Imagemagick script for tiling
#!/bin/bash
file=$1
function tile() {
convert $file -scale ${s}%x -crop 256x256 \
-set filename:tile "%[fx:page.x/256]_%[fx:page.y/256]" \
+repage +adjoin "${file%.*}_${s}_%[filename:tile].${file#*.}"
}
s=100
tile
s=50
@ejknapp
ejknapp / gist:1980958
Created March 5, 2012 20:42
Advanced Java Analyzer Properties
output.dir=output/
output.file.summary=summary_report.txt
output.file.unique=unique_tokens.txt
output.file.bigwords=big_words.txt
output.file.token.count=token_count.txt
output.file.token.size=token_size.txt
output.file.keyword=keyword_locations.txt
# Big Words Minimum Word Length
@ejknapp
ejknapp / gist:1946263
Created March 1, 2012 00:45
Sample Core Data files
http://dl.dropbox.com/u/16988659/dictionary.zip
@ejknapp
ejknapp / gist:1927450
Created February 27, 2012 22:09
Servlet Super Abbrevs snippet
package java112.$1;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
/**
* @author <#=AUTHOR#>
@ejknapp
ejknapp / gist:1888365
Created February 22, 2012 23:32
Mac jEdit plugin set
http://dl.dropbox.com/u/16988659/jEditMacPlugins.zip
@ejknapp
ejknapp / reading-links.txt
Created February 11, 2012 17:33
Links on reading for information rather than entertainment.
@ejknapp
ejknapp / gist:1785465
Created February 10, 2012 02:02
unit 1 tests
http://dl.dropbox.com/u/16988659/java112Tests.jar
@ejknapp
ejknapp / gist:1782953
Created February 9, 2012 20:46
Random Numbers in C
http://iphonedevelopment.blogspot.com/2008/10/random-thoughts-rand-vs-arc4random.html
@ejknapp
ejknapp / gist:1782924
Created February 9, 2012 20:41
HiLo Screen Shot
http://dl.dropbox.com/u/16988659/HiLo.png
@ejknapp
ejknapp / gist:1678855
Created January 25, 2012 21:30
SuperAbbrevs snippet
package java112.$1;
/**
* @author <#=AUTHOR#>
* class $2
*
*/
public class ${2:name} {
public void run() {