Skip to content

Instantly share code, notes, and snippets.

View radovankavicky's full-sized avatar
🐍
Pythonista

Radovan Kavicky radovankavicky

🐍
Pythonista
View GitHub Profile
@radovankavicky
radovankavicky / johnsnow_dataset_pumps_deaths_comma_xyswitched.csv
Created December 20, 2017 12:48
Cholera Deaths and Pumps information from John Snow's 1854 map of the cholera outbreak in London. Each row represents a location (given in the geometry field) of either a Pump or a Death. The value given in the Count field is either: -999 for a pump > 0: the number of deaths at that location This has been imported from the shapefiles available at
Number of deaths X coordinate Y coordinate
3 51.513418 -0.13793
2 51.513361 -0.137883
1 51.513317 -0.137853
1 51.513262 -0.137812
4 51.513204 -0.137767
2 51.513184 -0.137537
2 51.513359 -0.1382
2 51.513328 -0.138045
3 51.513323 -0.138276
@radovankavicky
radovankavicky / johnsnow_dataset_deaths.csv
Last active December 21, 2017 19:06
Cholera Deaths information from John Snow's 1854 map of the cholera outbreak in London. Each row represents a location (given in the geometry field) of Deaths. The value given in the Count field of the number of deaths at that location. This has been imported from the shapefiles available at http://blog.rtwilson.com/john-snows-famous-cholera-ana…
Number of deaths X coordinate Y coordinate
3 51.513418 -0.13793
2 51.513361 -0.137883
1 51.513317 -0.137853
1 51.513262 -0.137812
4 51.513204 -0.137767
2 51.513184 -0.137537
2 51.513359 -0.1382
2 51.513328 -0.138045
3 51.513323 -0.138276
@radovankavicky
radovankavicky / johnsnow_dataset_pumps.csv
Last active December 21, 2017 19:06
Pumps information from John Snow's 1854 map of the cholera outbreak in London. Each row represents a location (given in the geometry field) of a Pump. This has been imported from the shapefiles available at http://blog.rtwilson.com/john-snows-famous-cholera-analysis-data-in-modern-gis-formats/
Pump Name X coordinate Y coordinate
-999 51.513341 -0.136668
-999 51.513876 -0.139586
-999 51.514906 -0.139671
-999 51.512354 -0.13163
-999 51.512139 -0.133594
-999 51.511542 -0.135919
-999 51.510019 -0.133962
-999 51.511295 -0.138199
@radovankavicky
radovankavicky / johnsnow_dataset_deaths_all.csv
Last active December 21, 2017 19:05
Cholera Deaths information from John Snow's 1854 map of the cholera outbreak in London. Each row represents a location (given in the geometry field) of a Death. The value given in the number of deaths at that location This has been imported from the shapefiles available at http://blog.rtwilson.com/john-snows-famous-cholera-analysis-data-in-moder…
Death X coordinate Y coordinate
1 51.513418 -0.13793
1 51.513418 -0.13793
1 51.513418 -0.13793
1 51.513361 -0.137883
1 51.513361 -0.137883
1 51.513317 -0.137853
1 51.513262 -0.137812
1 51.513204 -0.137767
1 51.513204 -0.137767
@radovankavicky
radovankavicky / johnsnow_dataset_dates_all.csv
Last active December 21, 2017 19:22
Number of Cholera Attacks and Deaths from John Snow's 1854 map of the cholera outbreak in London. Each row represents a day (number of cholera attacks and deaths at that day) before or after removing a lever of pump at Broad St. (8th of September 1854). This has been extracted from R HistData package available at https://cran.r-project.org/web/p…
order date attacks deaths
1 1854-08-19 1 1
2 1854-08-20 1 0
3 1854-08-21 1 2
4 1854-08-22 0 0
5 1854-08-23 1 0
6 1854-08-24 1 2
7 1854-08-25 0 0
8 1854-08-26 1 0
9 1854-08-27 1 1
@radovankavicky
radovankavicky / johnsnow_dataset_pumps_names.csv
Created December 21, 2017 19:58
Number of Cholera Attacks and Deaths from John Snow's 1854 map of the cholera outbreak in London. Each row represents a day (number of cholera attacks and deaths at that day) before or after removing a lever of pump at Broad St. (8th of September 1854). This has been extracted from R HistData package available at https://cran.r-project.org/web/p…
Pump Name X coordinate Y coordinate
Broad St. 51.513341 -0.136668
Crown Chapel 51.513876 -0.139586
Gt Marlborough 51.514906 -0.139671
Dean St. 51.512354 -0.13163
So Soho 51.512139 -0.133594
Briddle St. 51.511542 -0.135919
Coventry St. 51.510019 -0.133962
Warwick 51.511295 -0.138199
@radovankavicky
radovankavicky / Rsnow.R
Created December 21, 2017 21:27 — forked from ikosmidis/let_it_snow.R
A function to create artifical snow using R base graphics and the animation package
## Licence: GPL 2 or 3 <https://www.gnu.org/licenses/licenses.html#GPL>
## Author: Ioannis Kosmidis <i.kosmidis@ucl.ac.uk>
## Date: 21 December 2017
#' A function to create artifical snow using R base graphics and the animation package
#'
#' @param n_flakes how many flakes to throw?
#' @param fall_speed how fast should the snow fall? There will be a \code{1/fall_speed} seconds delay between moves
#' @param max_flake_size what is the maximum flake size (same as cex in \code{\link{plot}})
#' @param eps how much is the flake allowed to move to the left and to the right? (emulating wind)
@radovankavicky
radovankavicky / christmastree.py
Created December 24, 2017 11:42 — forked from jurandysoares/christmastree.py
A small Christmas' Tree Algorithm in Python.
import turtle
screen = turtle.Screen()
screen.setup(800,600)
circle = turtle.Turtle()
circle.shape('circle')
circle.color('red')
circle.speed('fastest')
circle.up()
@radovankavicky
radovankavicky / README.md
Created January 7, 2018 22:28 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@radovankavicky
radovankavicky / conda-r.md
Created February 17, 2018 19:04 — forked from adefelicibus/conda-r.md
How to install R 3.2.2 using a conda environment on CentOS

Download Miniconda

  • Python 2.7
    # 32 bits
    $ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86.sh
    # 64 bits
    $ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh