Skip to content

Instantly share code, notes, and snippets.

View pallada-92's full-sized avatar

Yaroslav Sergienko pallada-92

View GitHub Profile
@pallada-92
pallada-92 / TUNEL.us API overview.md
Last active November 2, 2015 18:13
TUNEL.us API overview

TUNEL.us API overview

We are ready to answer your questions via contact@tunel.us

Public data

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"}

@pallada-92
pallada-92 / README.md
Last active November 2, 2015 18:18
bl.ocks.org test

readme!!!

@pallada-92
pallada-92 / core.clj
Last active January 26, 2016 22:16
Clojure animation library
(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]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pallada-92
pallada-92 / 170325_opt_hw2.ipynb
Created March 26, 2017 22:26
Optimizations methods HW Sergienko
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pallada-92
pallada-92 / main.py
Created March 28, 2018 15:51
Network lab python source code
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
@pallada-92
pallada-92 / titanic3.csv
Created November 1, 2018 17:15
Titanic survivors
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 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']
@pallada-92
pallada-92 / 190106_blur.ipynb
Last active August 1, 2020 15:17
HUD-style visulization of a random graph
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.