This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FoundWord(word='a', locations=[Location(row=2, col=0)]) | |
FoundWord(word='al', locations=[Location(row=2, col=0), Location(row=1, col=1)]) | |
FoundWord(word='alice', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=2, col=3), Location(row=3, col=2)]) | |
FoundWord(word='alien', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=3, col=2), Location(row=3, col=3)]) | |
FoundWord(word='alin', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=3, col=3)]) | |
FoundWord(word='aline', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=3, col=3), Location(row=3, col=2)]) | |
FoundWord(word='alit', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=2, col=1)]) | |
FoundWord(word='alite', locations=[Location(row=2, col=0), Location(row=1, col=1), Location(row=2, col=2), Location(row=2, col=1), Location(row=3, col=2)]) | |
F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> | |
<Configure id="FileServer" class="org.mortbay.jetty.Server"> | |
<Set name="handler"> | |
<New class="org.mortbay.jetty.handler.HandlerList"> | |
<Set name="handlers"> | |
<Array type="org.mortbay.jetty.Handler"> | |
<Item> | |
<New class="org.mortbay.jetty.handler.ResourceHandler"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from collections import defaultdict | |
import csv | |
# see http://stackoverflow.com/questions/6180609/group-and-check-mark-using-python | |
def main(): | |
# files = ["group.txt"] | |
files = sys.argv[1:] | |
if len(files) < 1: | |
print "usage: ./python_checkmark.py file1 [file2 ... filen]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This class is part of the book "iText in Action - 2nd Edition" | |
* written by Bruno Lowagie (ISBN: 9781935182610) | |
* For more info, go to: http://itextpdf.com/examples/ | |
* This example only works with the AGPL version of iText. | |
* | |
* Modified by Nick Dunn (http://developmentality.wordpress.com) to | |
* focus on just the PDF header aspect. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: Nick Dunn | |
# | |
# This script takes as input the path to a .kmz file and outputs a directory | |
# full of the contents of that .kmz file, named the same as the .kmz file without | |
# the kmz suffix. Thus | |
# ./openkmz.sh /path/to/mykmz.kmz | |
# would result in a new directory being created at /path/to/mykmz filled with the contents | |
# of mykmz.kmz. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<users> | |
<user> | |
</user> | |
<user> | |
<user> | |
</users> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> | |
<!-- an ISessionFactory instance --> | |
<session-factory> | |
<!-- properties --> | |
<property name="connection.provider"> | |
NHibernate.Connection.DriverConnectionProvider | |
</property> | |
<property name="connection.driver_class"> | |
NHibernate.Driver.MySqlDataDriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group ClassDefinition; | |
class(name, number, description, classAttributes, classComments, package)::=<< | |
$packageDeclaration(package)$ | |
$imports(...)$ | |
$header()$ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python reverse.py I like dogs | |
dogs like I |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
JFrame frame = new JFrame(); | |
JPanel panel = new JPanel(); | |
panel.add(new StarRater()); | |
frame.getContentPane().add(panel); | |
frame.pack(); | |
frame.setVisible(true); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
} |
NewerOlder