Skip to content

Instantly share code, notes, and snippets.

@dwtkns
dwtkns / README.md
Last active December 28, 2015 12:49
Snap.svg Animation Tests #1
@dwtkns
dwtkns / README.md
Created November 10, 2013 23:47
Patterns & animation test 2
@dwtkns
dwtkns / README.md
Created November 5, 2013 14:10
SVG patterns & animation test

Experimenting with transitions on pattern fills.

var httpAgent = require('http-agent'),
util = require('util');
var agent = httpAgent.create('www.google.com', ['finance', 'news', 'images']);
agent.addListener('next', function (err, agent) {
console.log('Body of the current page: ' + agent.body);
console.log('Response we saw for this page: ' + util.inspect(agent.response));
// Go to the next page in the sequence
library(XML)
getMARCField = function(marc_doc, tag, code) {
xpath = paste("/m:collection/m:record/m:datafield[@tag='", tag, "']/m:subfield[@code='", code, "']", sep="")
return(xpathApply(marc_doc, xpath, namespaces=c("m"), xmlValue))
}
vs = xmlRoot(xmlParse('vail-first-3500.xml'))
field100a = getMARCField(vs, '100', 'a')