Skip to content

Instantly share code, notes, and snippets.

View ejknapp's full-sized avatar

Eric Knapp ejknapp

View GitHub Profile
package java112.labs1;
import java.io.*;
/**
* @author Eric Knapp
* class DemoOutput
*
*/
public class DemoOutput {
package java112.labs1;
import java.io.*;
/**
* @author Eric Knapp
* class DemoIoTwo
*
*/
public class DemoIoTwo {
SuperAbbrevs snippet to make class for java 112
package java112.$1;
/**
* @author <#=AUTHOR#>
* class $2
*
*/
public class ${2:name} {
//
// main.m
// First
//
// Created by Eric Knapp on 9/8/11.
// Copyright 2011 Madison Area Technical College. All rights reserved.
//
#import <Foundation/Foundation.h>
<div id="posts">
<div class="post">
<h2 class="title">title</h2>
<div class="story">
<p>
content
</p>
</div>
</div>
<%@ include file="/WEB-INF/jsp/fragments/doctype.jsp" %>
<c:set var="pageTitle" scope="page" value="title" />
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/WEB-INF/jsp/fragments/head-tag.jsp" %>
<body>
<%@ include file="/WEB-INF/jsp/fragments/header.jsp" %>
@ejknapp
ejknapp / gist:945437
Created April 27, 2011 23:08
Tiling script for imagemagick
#!/bin/bash
file=$1
function tile() {
convert $file -scale ${s}%x -crop 256x264 \
-set filename:tile "%[fx:page.x/256]_%[fx:page.y/264]" \
+repage +adjoin "${file%.*}_${s}_%[filename:tile].${file#*.}"
}
s=100
tile
s=50
http://dl.dropbox.com/u/16988659/WordDictionary.tgz
defaults write com.apple.dt.Xcode DVTTextCodeFocusFollowsSelection 1
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/index.jsp</welcome-file>
</welcome-file-list>