Skip to content

Instantly share code, notes, and snippets.

@max-l
max-l / TestyDigitalMode.java
Created February 26, 2018 22:54
TestyDigitalMode created by max_l - https://repl.it/@max_l/TestyDigitalMode
class EndOfTheWorldException extends Exception {
public EndOfTheWorldException(String reason) {
super("The world has ended, because of "+ reason);
}
}
@max-l
max-l / TestyDigitalMode.java
Created February 26, 2018 22:54
TestyDigitalMode created by max_l - https://repl.it/@max_l/TestyDigitalMode
class EndOfTheWorldException extends Exception {
public EndOfTheWorldException(String reason) {
super("The world has ended, because of "+ reason);
}
}

Keybase proof

I hereby claim:

To claim this, I am signing this object:

export HOME_DIR="/home/adminphen/tools/snpEff"
export DB="/home/adminphen/tools/dbsnp137.hg19.vcf"
export JVM_ARGS="-Djava.io.tmpdir=/tmp -XX:ParallelGCThreads=2 -Xmx8G"
cd $HOME_DIR
java $JVM_ARGS -jar $HOME_DIR/SnpSift.jar \
@max-l
max-l / gist:b05b5cb6255eeea020e8
Created February 2, 2015 16:18
Galaxy nginx config
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
server {
import RawSql._
val pathsById = q("select id, st_AsText(r.path) from findPaths(?,?,?)", x, y, z).toSeq[Long, String].toMap
object object RawSql {
def q(query: String, args: Any*) =
new RawTupleQuery(query, args)
@max-l
max-l / gist:5541443
Last active December 17, 2015 03:09
// geospatial queries with Squeryl
val ctGeoid =
q("select t.geoid from ctracts t "+
"where st_within(ST_SetSRID(ST_Point(?,?),4269), t.geom)",
g.longitude,
g.latitude).toSeq[String].head
val bgGeoid =
q("select t.geoid from bgroups t "+
[{id: 123, text:'zaza'}]
import java.util.Date
trait TDate
trait TT[A1,T1]
trait TTFactory[F,G] {
def create(f: F) : TT[F,G]
def sample: F
}
object Poc2 {
trait TARInt
trait Basket[A,B] {
def iAmABasket = {}
}
trait BasketFactory[A,B] {
def create(v: A): Basket[A,B]