Skip to content

Instantly share code, notes, and snippets.

View neilerdwien's full-sized avatar

Neil Erdwien neilerdwien

View GitHub Profile
@neilerdwien
neilerdwien / gist:20e2798feb14250efbc6d1cd8f82a4ab
Last active August 18, 2016 05:35
Bookmarklet to remove URLs from printouts of Kansas State University web pages
javascript:(function(){
var ac = function(cl) {
var dl = document.getElementsByClassName(cl);
for (var i = 0; i < dl.length; i++) {
dl[i].classList.add('ksu-no-print-url');
}
};
ac('ksu-main-content');
ac('ksu-sidebar-secondary');
})();
@neilerdwien
neilerdwien / parseRfc922Datetime.xslt
Created March 15, 2017 21:45
parseRfc922Datetime function: Parse a date/time in RFC822 format and return an xs:dateTime value
<!-- Parse a date/time in RFC822 format and return an xs:dateTime value.
*
* If no input string is supplied, or the string is not a valid RFC822 date/time
* value, return the empty sequence.
*
* Background:
*
* The original email standard, RFC822, specifies the format of the Date header.
* See https://www.w3.org/Protocols/rfc822/#z28 for details.
*