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
[ | |
{ | |
"id": 0, | |
"x": -0.9476209907737456, | |
"y": 0.09242753936279535 | |
}, | |
{ | |
"id": 1, | |
"x": -0.31881529547019216, | |
"y": 0.5676147817727233 |
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 json | |
import random | |
cities = [] | |
nnmax = 50 | |
for nn in range(nnmax): | |
city = {} | |
city['id'] = nn | |
city['x'] = (random.random() - 0.5)*2 |
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 math | |
import random | |
import json | |
import csv | |
import datetime | |
import boto3 | |
import os | |
population = 100 | |
generation = 10000 |
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
# -*- coding: utf-8 -*- | |
# See also http://blog.serverworks.co.jp/tech/2016/06/02/minutes-automation/ | |
import json | |
import boto3 | |
import urllib2 | |
import httplib | |
from base64 import b64encode, b64decode | |
from datetime import datetime, timedelta |
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 | |
# Setup of GUI | |
add-apt-repository -y ppa:x2go/stable | |
apt-get -y update | |
apt-get -y install x2goserver x2goserver-xsession | |
apt-add-repository -y ppa:ubuntu-mate-dev/ppa | |
apt-add-repository -y ppa:ubuntu-mate-dev/trusty-mate | |
apt-get -y update | |
apt-get -y install ubuntu-mate-core ubuntu-mate-desktop |
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
Bootstrap: docker | |
From: ubuntu:17.10 | |
%post | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install apt-file | |
apt-get -y install software-properties-common | |
apt-get -y install wget | |
apt-get -y install apt-transport-https |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"name": "First Job", | |
"jobanalyses": [ | |
{ | |
"analysis": { | |
"code": "user_included", | |
"version": "0" | |
}, | |
"command": "echo first_job_start; sleep 5m; echo first_job_end", | |
"flags": {}, |
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 json | |
import requests | |
api_token = "a0************************************4b" | |
token_in_header = "Token " + api_token | |
platform = "platform.rescale.com" | |
job_configuration = { | |
"name": "Example Job from API", | |
"jobanalyses": [ |
OlderNewer