In the fifth century B.C., members of the "League of the Greeks" paid annual tribute to Athens. The Athenian Tribute Quota lists are a series of fragmentarily preserved inscriptions recording the proportion of that payment (1/60) that was handed over to the Treasurers of Athena.
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
export EDITOR="/usr/bin/open -n -W -a /Applications/TextEdit.app" |
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
<ul id="citekit-sources"> | |
<li class="citekit-source cite-text citekit-default">http://DEFAULTCTS</li> | |
<li class="citekit-source cite-image citekit-default">http://DEFAULTIMGSVC</li> | |
<li class="citekit-source cite-collection citekit-default">http://DEFAULTCOLL</li> | |
</ul> |
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
while (<STDIN>) { | |
my $currLine = $_; | |
# accept deletions: | |
$currLine =~ s#{--[^\-]+--}##g; | |
# accept additions: | |
$currLine =~ s#{\+\+([^+]*)\+\+}#$1#g; | |
# accept changes: | |
$currLine =~ s#{~~[^~]+~>([^~]+)~~}#$1#; | |
print $currLine; | |
} |
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
while (<STDIN>) { | |
my $currLine = $_; | |
#reject deletions: | |
$currLine =~ s#{--([^\-]+)--}#$1#g; | |
#reject additions: | |
$currLine =~ s#{\+\+([^+]*)\+\+}##g; | |
#reject changes: | |
$currLine =~ s#{~~([^~]+)~>[^~]+~~}#$1#g; | |
print $currLine; | |
} |
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
/* | |
groovy XmlParser creates a tree of nodes that are | |
either Strings or groovy.util.Node objects. Walk the | |
parsed tree recursively and save text content. | |
*/ | |
String collectText(Object n, String allText) { | |
if (n.getClass().getName() == "java.lang.String") { | |
allText = allText + n |
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
export JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8" |
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
OutputStreamWriter osw = new OutputStreamWriter(System.out, "UTF-8") | |
osw.write "μῆνιν ἄειδε\n" | |
osw.close() |
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
def objectInstance = Class.forName("NAME.AS.STRING").newInstance() |
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
# Add to your .profile or equivalent: | |
export JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8" |
OlderNewer