docker pull mysql
docker pull wordpress
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=****** -d mysql
docker run --name some-wordpress --link some-mysql:mysql -d wordpress
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> | |
<meta charset="utf-8"> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var w = 50; | |
var h = 200; | |
var svg = d3.select("body").append('svg') |
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/sh | |
# hostname = cartodb.e-ecology.cloudlet.sara.nl | |
# user = verhoes = verhoes.cartodb.e-ecology.cloudlet.sara.nl | |
apt-get update | |
apt-get upgrade -y | |
echo 'cartodb.e-ecology.cloudlet.sara.nl' > /etc/hostname | |
# reboot |
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/env python | |
import csv | |
nemo = {'lat': 52.374253,'lon': 4.911687} | |
nakko = {'lat':52.330797,'lon':4.966013} | |
with open('in.csv', 'rb') as csvin: | |
with open('out.csv', 'wb') as csvout: | |
reader = csv.reader(csvin) |
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
/* | |
* Copyright 2013 Netherlands eScience Center | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 modifiedtanimoto.db as db | |
import modifiedtanimoto.algorithm as algorithm | |
frags = db.FragmentsDb('data/fragments12.db') | |
bss =frags.bitsets() | |
z = bss['5fl6_Y0R_frag10'] | |
bitsets2 = {'5fl6_Y0R_frag1':bss['5fl6_Y0R_frag1']} | |
myiter = algorithm.distances(bss, bitsets2, 574331, 0.6633333333333333, 0.33666666666666667, 0.55, True) | |
for r in myiter: |
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 pandas as pd | |
from kripodb.canned import fragments_by_id | |
# Requires as input table with columns | |
# hit_frag_id, query_frag_id and score | |
# Returns id and molblock of query and hit | |
# and protein name of hit. | |
# Location of fragment database | |
fragments_db_filename = '/data/kripo/tiny/fragments.sqlite' |
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
license: apache-2.0 | |
height: 1000 |
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
github3.py==1.0.0a4 | |
click==6.7 |
OlderNewer