Skip to content

Instantly share code, notes, and snippets.

View nastacio's full-sized avatar

Denilson Nastacio nastacio

View GitHub Profile
@nastacio
nastacio / kabanero-minishift.sh
Last active September 23, 2019 14:59
kabanero-minishift.sh
#!/bin/bash
set -e
set +x
curdir=`pwd`
scriptdir=`dirname "${0}"`
scriptname=`basename "${0}"`
#
@nastacio
nastacio / aact.sql
Last active January 27, 2019 02:39
Useful AACT queries
--
-- Count of clinical trials for each intervention type
--
select i.intervention_type, count(distinct i.nct_id)
from
interventions as i
group by
i.intervention_type
--
try {
Hashtable<String, String> env = new Hashtable<>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL, "file:/Users/nastacio/tmp/jndi");
InitialContext ctx = new InitialDirContext(env);
for (Entry<String, DB2SimpleDataSource> ds : dss.entrySet()) {
String name = ds.getKey();
CompositeName cn = new CompositeName(name);
Context subCtx = ctx;