Skip to content

Instantly share code, notes, and snippets.

View sethrylan's full-sized avatar

Seth Rylan Gainey sethrylan

View GitHub Profile
@sethrylan
sethrylan / checkstyle.gradle
Last active December 25, 2018 07:09
Code Quality Tasks for Android
configurations {
codequality
}
repositories {
mavenCentral()
}
dependencies {
codequality 'com.puppycrawl.tools:checkstyle:5.6'
{
"name": "VistA",
"children": [
{
"name": "Provider Services",
"children": [
{
"name": "Laboratory",
"children": [
{
[
{
"dependents": [
"Methicillin Resistant Staph Aurerus Initiative Reports",
"Authorization Subscription",
"Clinical Procedures",
"VistALink",
"CMOP",
"Enterprise Health Management Platform",
"HINQ",
/* BMP085 + Data Logger
by: Seth Rylan Gainey
date: 2012/07/08
license: http://sethrylan.mit-license.org/
Retrieve pressure and temperature from the BMP085 and calculate altitude.
Serial.print it out at 9600 baud to serial monitor and store on SD card.
"If you're using an Arduino Pro 3.3V/8MHz, or the like, you may need to
increase some of the delays in the bmp085ReadUP and
@sethrylan
sethrylan / scalaConsole1
Last active June 17, 2016 20:08
ScalaBasePlugin scalaConsole/scalaTestConsole tasks
apply plugin: 'scala'
repositories {
mavenCentral()
}
ext {
versions = [
scala: '2.9.2',
scalatest: '2.0.M3',
@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 {
@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 / 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 / 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 / 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.