We are ready to answer your questions via contact@tunel.us
This is the only request that does not require authorization. It is recommended to make it every 5 minutes or after other api requests.
GET http://tunel.us/graph?data={"type":"all1"}
We are ready to answer your questions via contact@tunel.us
This is the only request that does not require authorization. It is recommended to make it every 5 minutes or after other api requests.
GET http://tunel.us/graph?data={"type":"all1"}
readme!!!
(ns clj-160122-anim.core | |
(:gen-class)) | |
(defn clear-folder | |
[path] | |
(let [files (.listFiles (clojure.java.io/file path))] | |
(map clojure.java.io/delete-file files))) | |
(defn save-file | |
[fname contents] |
import random, json | |
import pandas as pd | |
def get_orig_edges(min_time, max_time): | |
edges = set() | |
for line in open('./contacts.txt'): | |
source, target, time = line.strip().split() | |
source, target, time = int(source), int(target), int(time) | |
if time < min_time or time > max_time: | |
continue |
pclass | survived | name | sex | age | sibsp | parch | ticket | fare | cabin | embarked | boat | body | home.dest | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 | Allen, Miss. Elisabeth Walton | female | 29 | 0 | 0 | 24160 | 211.3375 | B5 | S | 2 | St Louis, MO | ||
1 | 1 | Allison, Master. Hudson Trevor | male | 0.9167 | 1 | 2 | 113781 | 151.5500 | C22 C26 | S | 11 | Montreal, PQ / Chesterville, ON | ||
1 | 0 | Allison, Miss. Helen Loraine | female | 2 | 1 | 2 | 113781 | 151.5500 | C22 C26 | S | Montreal, PQ / Chesterville, ON | |||
1 | 0 | Allison, Mr. Hudson Joshua Creighton | male | 30 | 1 | 2 | 113781 | 151.5500 | C22 C26 | S | 135 | Montreal, PQ / Chesterville, ON | ||
1 | 0 | Allison, Mrs. Hudson J C (Bessie Waldo Daniels) | female | 25 | 1 | 2 | 113781 | 151.5500 | C22 C26 | S | Montreal, PQ / Chesterville, ON | |||
1 | 1 | Anderson, Mr. Harry | male | 48 | 0 | 0 | 19952 | 26.5500 | E12 | S | 3 | New York, NY | ||
1 | 1 | Andrews, Miss. Kornelia Theodosia | female | 63 | 1 | 0 | 13502 | 77.9583 | D7 | S | 10 | Hudson, NY | ||
1 | 0 | Andrews, Mr. Thomas Jr | male | 39 | 0 | 0 | 112050 | 0.0000 | A36 | S | Belfast, NI | |||
1 | 1 | Appleton, Mrs. Edward Dale (Charlotte Lamson) | female | 53 | 2 | 0 | 11769 | 51.4792 | C101 | S | D | Bayside, Queens, NY |
# see also this gist for preprocessing source: https://gist.github.com/pallada-92/0c2bb28255b861f2d365de3d2bc8f748 | |
import math | |
import cairo | |
cmap = plt.get_cmap('gist_rainbow') | |
days_of_week = ['Monday', 'Tuesday', 'Wednesday', | |
'Thursday', 'Friday', 'Saturday', 'Sunday'] |