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
#!/bin/bash | |
function _grails { | |
local grails_bin=/usr/bin/grails | |
local grails_home | |
if [[ -f application.properties ]]; then | |
local grails_version=$(grep 'app\.grails\.version' application.properties \ | |
| cut -d = -f 2) | |
local dir=$(echo ~/grails/grails-"$grails_version") | |
if [[ ! -d $dir ]]; then |
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
package org.transmartproject.db.dataquery.clinical | |
import com.google.common.collect.BiMap | |
import com.google.common.collect.HashBiMap | |
import com.google.common.collect.Maps | |
import groovy.transform.CompileStatic | |
import org.hibernate.ScrollableResults | |
import org.transmartproject.core.dataquery.clinical.ClinicalVariableColumn | |
import org.transmartproject.core.exceptions.UnexpectedResultException | |
import org.transmartproject.db.dataquery.CollectingTabularResult |
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
[ 4.621065] [drm] radeon: 1024M of GTT memory ready. | |
[ 4.621074] [drm] Loading PITCAIRN Microcode | |
[ 4.621118] [drm] radeon/PITCAIRN_mc2.bin: 31100 bytes | |
[ 4.621131] [drm] Internal thermal controller with fan control | |
[ 4.621160] [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e | |
[ 4.621177] == power state 0 == | |
[ 4.621178] ui class: none | |
[ 4.621181] internal class: boot | |
[ 4.621183] caps: | |
[ 4.621185] uvd vclk: 0 dclk: 0 |
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
$ php5/bin/php-config | |
Usage: php5/bin/php-config [OPTION] | |
Options: | |
--prefix [/home/glopes/repos/transmart-data/env/php5] | |
--includes [-I/home/glopes/repos/transmart-data/env/php5/include/php -I/home/glopes/repos/transmart-data/env/php5/include/php/main -I/home/glopes/repos/transmart-data/env/php5/include/php/TSRM -I/home/glopes/repos/transmart-data/env/php5/include/php/Zend -I/home/glopes/repos/transmart-data/env/php5/include/php/ext -I/home/glopes/repos/transmart-data/env/php5/include/php/ext/date/lib] | |
--ldflags [] | |
--libs [-lcrypt -lresolv -lcrypt -lrt -lm -ldl -lnsl -lcrypt -lcrypt ] | |
--extension-dir [/home/glopes/repos/transmart-data/env/php5/lib/php/extensions/no-debug-non-zts-20121212] | |
--include-dir [/home/glopes/repos/transmart-data/env/php5/include/php] | |
--man-dir [/home/glopes/repos/transmart-data/env/php5/php/man] |
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
def run_command(command) | |
Open3.popen3(*command) do |stdin, stdout, stderr, wait_thr| | |
stdin.close_write | |
files = [stdout, stderr] | |
all_eof = lambda { files.all? { |f| f.eof } } | |
print_lines = lambda { |buffer, method| | |
while pos = buffer.index("\n") | |
Log.send method, buffer[0..pos] | |
buffer = buffer[(pos + 1)..-1] | |
end |
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
import org.apache.commons.logging.LogFactory | |
@Grapes([ | |
@Grab(group='org.springframework.batch', module='spring-batch-core', version='3.0.1.RELEASE'), | |
@Grab(group='org.springframework', module='spring-jdbc', version='4.0.5.RELEASE'), | |
]) | |
import org.springframework.core.io.ClassPathResource | |
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator | |
import groovy.sql.Sql | |
import java.sql.Connection |
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
glopes ~/repos/transmart-batch (master *%<>) $ cat a.groovy | |
enum A { | |
FOO ('s'), | |
BAR('v', a: 'v') | |
A(Map map, String s) {} | |
} | |
class B { | |
B(Map map, String s) {} |
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
glopes /tmp/aa $ wget -q http://central.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar | |
glopes /tmp/aa $ cat a.groovy | |
import com.google.common.base.* | |
import com.google.common.collect.* | |
import groovy.transform.CompileStatic | |
@CompileStatic | |
class A { | |
Table<String /* dimension key */, | |
String /* external 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
2015-03-31 16:21:40,604 [main] [WARN] o.t.b.b.BetterExitMessageJobExecutionListener - Exit description: VerifyError: Bad access to protected data in invokevirtual | |
Exception Details: | |
Location: | |
org/transmartproject/batch/i2b2/dimensions/DimensionsStore$_restore_closure1_closure7.doCall(Ljava/lang/String;Ljava/util/List;)Ljava/lang/Object; @1: invokevirtual | |
Reason: | |
Type 'java/util/List' (current frame, stack[0]) is not assignable to 'org/transmartproject/batch/i2b2/dimensions/DimensionsStore$_restore_closure1_closure7' | |
Current Frame: | |
bci: @1 | |
flags: { } | |
locals: { 'org/transmartproject/batch/i2b2/dimensions/DimensionsStore$_restore_closure1_closure7', 'java/lang/String', 'java/util/List' } |
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
import groovy.transform.CompileStatic | |
@CompileStatic | |
class A { | |
private int position = 0 | |
def foo() { | |
position = new Integer(0) | |
assert(position != null) | |
} | |
} |
OlderNewer