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
# CAS -> smiles with CACTUS server | |
sapply(cas, function(id){ | |
require(RCurl) | |
return(getURL(paste("http://cactus.nci.nih.gov/chemical/structure/",id,"/smiles",sep=""))) | |
}) |
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 f1 = { | |
println("f1") | |
true | |
} | |
def f2 = { | |
println("f2") |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Paste&Go</title> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js" ></script> | |
<script> | |
$( document ).ready(function() { | |
console.log( "ready!" ); |
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
library(Rqc) | |
fs <- "corrupted.fastq" | |
qa <- rqcQA(fs,sample=F) | |
sessionInfo() |
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
# loop over symbolik links in current directory | |
for f in `find . -maxdepth 1 -type l ` ; do | |
# get symlink destination | |
g=` readlink $f ` | |
# move original to directory | |
cp -f $g . | |
# clean | |
if [ $? == 0 ]; then | |
rm -f $g | |
rm -f $f |
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
/* | |
build.sbt | |
name := "AkkaStreamTemplate" | |
version := "0.1-SNAPSHOT" | |
scalaVersion := "2.12.2" | |
libraryDependencies ++= { | |
Seq( |
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
# http://www.sequentix.de/gelquest/help/distance_measures.htm | |
bdist <- function( x, y , method ){ | |
a <- sum( x == 1 & y == 1) | |
b <- sum( x == 1 & y == 0) | |
c <- sum( x == 0 & y == 1) | |
d <- sum( x == 0 & y == 0) | |
switch(method, | |
tanimoto = (a+d)/(a+2*(b+c)+d), |
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 akka.actor._ | |
import akka.actor.ActorLogging | |
import akka.actor.ActorSystem | |
import akka.stream._ | |
import akka.stream.actor.ActorSubscriberMessage._ | |
import akka.stream.actor._ | |
import akka.stream.scaladsl._ | |
import akka.{ NotUsed, Done } | |
import akka.util.ByteString | |
import java.io._ |
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 | |
set -e | |
set +u | |
get_script_dir () { | |
SOURCE="${BASH_SOURCE[0]}" | |
# While $SOURCE is a symlink, resolve it | |
while [ -h "$SOURCE" ]; do | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | |
SOURCE="$( readlink "$SOURCE" )" |
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 javax.crypto._ | |
import javax.crypto.spec._ | |
import java.util.Base64 | |
val message= "Hello" | |
val secret = "eGkmaYd3PE9x3Z221x7b2nXmJ7ACGrjf" | |
val ivString = "0123456789012345" | |
val ciper: Cipher = Cipher.getInstance("AES/CBC/PKCS5Padding") |
OlderNewer