Scripts for academics (Latex, grading, etc.). |
|
mkbooklet.pl | Perl scripts to make any PDF/PS file into a "booklet" for eco-friendly printing. You can print up to 4 pages per sheet (2 pages per side) and still get very readable output. |
pscenter.pl | |
tex_autoclose.vim | Vim TeX/LaTeX ftplugin to automatically close environments. |
tex.vim | A few settings that make life easier when using Latex + Vim. Pressing Ctrl-K runs latex, and puts the errors in the quickfix window. Pressing F9 opens xdvi showing the location of the cursor. And finally some spelling / abbreviation settings that you might not find useful. Put this file in ~/.vim/after/ftplugin/tex.vim. |
hwaverage | A Gnumeric/Python script to compute homework averages. When grading, I usually have a spreadsheet with homework scores in a row, and the totals in a different row. This script computes the percentage average of all homeworks, optionally dropping the lowest N (percentage) scores. |
gpa | A Gnumeric/Python script to compute grades / normalise scores. This can compute letter grades, based on given cutoffs. More importantly, say you have 2 exams each worth 50% of the total grade. Directly adding the scores from each of these exams will not be a correct indication of the students grade (esp. if one exam was a lot harder than the other). This becomes apparent if for instance you have three exams, and only count the better two. The correct way to compute the final grade would be to normalise the scores to be on the same scale (using an interpolant via quartiles/deciles, or specified grade cutoffs) and then average. This script has functions for this. The help should be visible within Gnumeric. |
subargs.pl | Perl script to substitute arguments -- it executes a given command substituting %n with field values from a given file. (I guess you can use awk/sed directly instead.) I usually use this to send mails to students with their individual grades: E.g. subargs -i scores.csv -C mail-scores.subargs |
General Linux applications / scripts |
|
SourceForge | A few open source projects I contributed to on Source Forge. I eventually got sick of their site outages / bad service so I switched to Google code. |
Google Code | All my more recent projects are here (mostly small utilities) |
Vim scripts | A few Vim scripts I wrote. (I use Vim for everything). |
Miscellaneous |
|
hp2710p/ | Installing Linux on the HP 2710p (convertible tablet). |
Javascript |
|
modalPopup.js |
Easily show "modal popups".
Example
This creates modal popups on click. Simplest usage: Use <a rel='modalPopup.open'>Open Popup</a> <div>Popup text goes here</div> Alternately, one can choose the ID of the element to put in the popup: <a rel='modalPopup.open.myId'>Open Popup</a> ... <div id='myId'>Popup text goes here</div> To include a close button in your popup dialogue, use an anchor with |
toggleDisplay.js |
Dynamically show / hide parts of your document. Example: |
And did they get you trade your heroes for ghosts?
Hot ashes for trees? Hot air for a cool breeze?
Cold comfort for change? And did you exchange
a walk on part in the war for a lead role in a cage?