Skip to content

Instantly share code, notes, and snippets.

View sethrylan's full-sized avatar

Seth Rylan Gainey sethrylan

View GitHub Profile
@sethrylan
sethrylan / techscreen.md
Last active August 29, 2015 13:56
techscreen

Are you local and available to work on site?

Tell me about yourself; where you are today and how did you get there.

Why are you leaving you current position?

What type of job are you looking for?

@sethrylan
sethrylan / gist:11234738
Created April 23, 2014 22:29
mock_nexus.gradle
apply plugin:'jetty'
jettyRun {
httpPort = 8000
webAppSourceDirectory = projectDir
contextPath = "/"
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
@sethrylan
sethrylan / vistacore_goto.txt
Created July 29, 2014 17:44
vistacore_goto.txt
1. Please join my meeting.
https://www2.gotomeeting.com/join/832632170
2. Use your microphone and speakers (VoIP) - a headset is recommended. Or, call in using your telephone.
Dial +1 (805) 309-0033
Access Code: 832-632-170
Audio PIN: Shown after joining the meeting
Meeting ID: 832-632-170
@sethrylan
sethrylan / ST101_02.06
Created July 4, 2012 22:48
ST101_02.06 Homework
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")
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"));
}
}
@sethrylan
sethrylan / PaxCucumber.java
Last active December 17, 2015 06:28
A PaxExam and Cucumber JUnit Test Runner
/**
* 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.
@sethrylan
sethrylan / csv_autocomplete
Created June 4, 2013 15:23
JQuery CSV Autocomplete
/* 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();
}
@sethrylan
sethrylan / scalaConsole2
Last active December 19, 2015 06:19
ScalaConsole from org.ScalaConsole library
apply plugin: 'scala'
repositories {
flatDir name: 'localLib', dirs: 'lib'
mavenCentral()
}
ext {
versions = [
scala: '2.9.2',
@sethrylan
sethrylan / gist:5969486
Created July 10, 2013 19:36
gradle-r-plugin error
C:\Projects\src\rsql>gradle clean build
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the
create() method instead.
:clean UP-TO-DATE
:DESCRIPTION
Setting DESCRIPTION for package rsql
:roxygenize
> library(roxygen2,quietly=TRUE,verbose=FALSE);roxygenize(package.dir='pkg',roxygen.dir='build\rsql',roclets = c(collate
, namespace, rd, testthat));warnings()
Loading required package: stringr
@sethrylan
sethrylan / Audited.java
Last active January 3, 2016 21:09
Audit Logging
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Audited {