- GitHub Staff
- sethrylan.org
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
apply plugin: 'scala' | |
repositories { | |
mavenCentral() | |
} | |
ext { | |
versions = [ | |
scala: '2.9.2', | |
scalatest: '2.0.M3', |
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
/* Symptoms */ | |
// shuttlebox : http://blog.jeremymartin.name/2008/02/easy-multi-select-transfer-with-jquery.html | |
// another shuttlebox : http://stackoverflow.com/questions/4255946/dynamic-shuttlebox-implementation-using-javascript | |
function split(val) { | |
return val.split(/,\s*/); | |
} | |
function extractLast(term) { | |
return split(term).pop(); | |
} |
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
/** | |
* This class allows for running Cucumber features tests using PaxExam in-container testing. | |
* | |
* When added as a RunWith annotation to a test class | |
* @RunWith(PaxCucumber.class) | |
* this effectively means that | |
* @RunWith(PaxCucumber.class) and @RunWith(Cucumber.class) | |
* are used as test runners for that class. Cucumber and PaxExam are run | |
* in parallel, and any Cucumber tasks must manually verify that any PaxExam | |
* dependencies have been satisfied. |
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
Document document = XMLUtils.getDom(fhirXmlFeedString); | |
DocumentTraversal traversal = (DocumentTraversal) document; | |
NodeIterator iterator = traversal.createNodeIterator(document.getDocumentElement(), NodeFilter.SHOW_ELEMENT, null, true); | |
for (Node node = iterator.nextNode(); node != null; node = iterator.nextNode()) { | |
String tagname = ((Element)node).getTagName(); | |
if (tagname.equals("totalResults")) { | |
assertEquals("1", ((Element)node).getTextContent()); | |
// logger.debug("id=" + ((Element)n).getAttribute("id")); | |
} | |
} |
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
print.matrix <- function(m){ | |
write.table(format(m, justify="right"), | |
row.names=T, col.names=T, quote=F) | |
} | |
p_loaded = 0.1 | |
p_hfair = 0.5 | |
p_hloaded = 0.9 | |
cells <- c(4, 0,10, 0, 20, 0, 0, 5, 2, 3) | |
rnames <- c("# heads", "# tails") |
NewerOlder