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
pyserver: | |
restart: "always" | |
build: ./src | |
ports: | |
- 8042:8042 | |
links: | |
- dbserver:dbserver | |
env_file: .env | |
command: python /usr/src/app/server.py |
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
diff --git a/docker.service b/docker.service | |
index 3695d53..df0e3e9 100644 | |
--- a/docker.service | |
+++ b/docker.service | |
@@ -1,5 +1,5 @@ | |
[Service] | |
-ExecStart=/usr/bin/docker -d -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=azure | |
+ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=azure | |
MountFlags=slave | |
LimitNOFILE=1048576 |
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
server { | |
listen 443 ssl; | |
# certs sent to the client in SERVER HELLO are concatenated in ssl_certificate | |
ssl_certificate /path/to/signed_cert_plus_intermediates; | |
ssl_certificate_key /path/to/private_key; | |
ssl_session_timeout 1d; | |
ssl_session_cache shared:SSL:50m; | |
# Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE KindSignatures #-} | |
import Data.Monoid | |
import Data.Proxy | |
data Colour = Red | Green | Blue deriving (Show) | |
data Size = Large | Small deriving (Eq, Show) |
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
#!/usr/bin/env bash | |
yell() { echo "$0: $*" >&2; } | |
die() { RETCODE=$1; shift; yell "$*"; exit ${RETCODE}; } | |
try() { "$@" || die 111 "cannot $*"; } | |
goDarwin() { | |
GHCVER="$(ghc --version)" |
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 random | |
target_diffusion = 0.1 | |
population=[[0,8,4], [2,7,2]] | |
pop_diffusion=[abs(0.1*max(x)) for x in zip(*population)] | |
individual=population[0] | |
while True: | |
rand_diffusion=[random.gauss(0, v) for v in diffusion] |
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
#!/usr/bin/env bash | |
relpath() { # don't mind me, I'm just a mere tool | |
python2.7 -c 'import os.path, sys; print os.path.relpath(sys.argv[1],sys.argv[2])' "$1" "${2-$PWD}" | |
} | |
declare -a PKG_OK=() | |
PKG_FAIL=() | |
PKG_ALL=() | |
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 | |
#PBS -l walltime=030:00:00 | |
#PBS -l nodes=1:ppn=12 | |
#PBS -q plgrid | |
#PBS -l mem=1500mb | |
export EV_REPONAME="evogil.${PBS_JOBID}" | |
export EV_PYTHON="${HOME}/local_python/bin/python" | |
export EV_PROBLEMS="ZDT1,ZDT2,ZDT3,ZDT4,ZDT6,UF1,UF2,UF3,UF4,UF5,UF6,UF7,UF8,UF9,UF10,UF11,UF12" |
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-06-23 23:47:42582 50672 algorithms.HGS.HGS DEBUG Created HGS <algorithms.HGS.HGS.HGS object at 0x10ebab5c0> | |
2015-06-23 23:47:42582 50672 algorithms.HGS.HGS DEBUG Creating root node with 50 indivs | |
2015-06-23 23:47:42583 50672 algorithms.HGS.HGS DEBUG Creating Node 0 | |
2015-06-23 23:47:42583 50672 algorithms.HGS.HGS DEBUG Node #0 creating driver with 50 indivs | |
2015-06-23 23:47:42583 50672 evotools.run_parallel DEBUG Dropping this dummy obj, returning partial instead: <class 'algorithms.HGS.HGS.HGS'> | |
2015-06-23 23:47:42583 50672 algorithms.HGS.HGS DEBUG Created HGS <algorithms.HGS.HGS.HGS object at 0x10ebab518> | |
2015-06-23 23:47:42583 50672 algorithms.HGS.HGS DEBUG Creating root node with 50 indivs | |
2015-06-23 23:47:42584 50672 algorithms.HGS.HGS DEBUG Creating Node 0 | |
2015-06-23 23:47:42584 50672 algorithms.HGS.HGS DEBUG Node #0 creating driver with 50 indivs | |
2015-06-23 23:47:42584 50672 evotools.run_parallel DEBUG Beginning processing of <algorithms.HGS.HGS.HGS object at 0x10ebab518>, args: (('ZDT4', 'HGS+NSGA |
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
[ PROBLEM ]..[ ALGO ]..[N ]..[Budgt]..[ METRICS OY ]..[ ✓ ]..[ RESULT, confidence interval ]..[ σ ]..[ OUTLIERS ]..[ RES w/o outliers ]..[ σ w/o outliers ]..[ (C INT)/METRICS ].. | |
kursawe :: IMGA+SPEA2 :: 3 :: 500 :: cost :: ✓ :: 510.000 ≤ 510.000 ≤ 510.000 :: 0.000 :: -- mild -- extr. :: 510.000 ( +0.000%) :: 0.000 ( inf%) :: 0.000% :: | |
kursawe :: IMGA+SPEA2 :: 3 :: 500 :: gd :: ✓ :: 0.014 ≤ 0.025 ≤ 0.042 :: 0.013 :: -- mild -- extr. :: 0.025 ( +0.000%) :: 0.013 ( 0.000%) :: 117.374% HIGH :: | |
kursawe :: IMGA+SPEA2 :: 3 :: 500 :: igd :: ✓ :: 0.004 ≤ 0.013 ≤ 0.018 :: 0.006 :: -- mild -- extr. :: 0.013 ( +0.000%) :: 0.006 ( 0.000%) :: 114.233% HIGH :: | |
kursawe :: IMGA+SPEA2 :: 3 :: 500 :: epsilon :: ✓ |