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/bash | |
# | |
# An incremental version of the `javac` command, intended to be backwards | |
# compatible but faster to invoke. | |
# | |
# Example Usage: | |
# | |
# ./javac_inc -d path/to/build /path/to/src/dir /path/to/other/src/dir | |
# | |
# Some minor differences from default Javac, intended to be features: |
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/bash | |
# | |
# A quick and dirty bash script to convert a tikz image to a png. | |
# The necessary tweaks to the script to get it to work for your | |
# use case are as follows: | |
# | |
# 1. Change FIGURE_DEFINITIONS to point to your own figures. | |
# This file should contain a series of \newcommand definitions, | |
# one per figure. | |
# |
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/bash | |
exec scala -J-Xmx4G -J-Xss16m "$0" "$@" | |
!# | |
/* | |
* Convert a Wikipdedia dump to plain-text files, one article per file. | |
* | |
* Usage: wikipedia2text <input_dump_file> <output_directory> | |
* | |
* NOTES: |
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
/** | |
* Fast "sed" for performing find/replace on a huge number of patterns, not | |
* requiring any actual regular expression matching. | |
* Note that this is in no way "fully featured" or really anything like sed, | |
* beyond the fact that I use sed almost exclusively for find/replace and the | |
* patterns file is nominally compatible with real sed. | |
* | |
* To compile: g++ -std=c++0x -O3 fsed.cc -o fsed | |
* | |
* Usage: ./fsed <path_to_patterns_file> |