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 / LU_decomposition.ipynb
Created April 28, 2018 15:31 — forked from jfpuget/LU_decomposition.ipynb
A Speed Comparison Of C, Julia, Python, Numba, and Cython on LU Factorization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radovankavicky
radovankavicky / rmagic_example.ipynb
Created April 10, 2018 10:02 — forked from simecek/rmagic_example.ipynb
How to add R code to your (IPython) Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radovankavicky
radovankavicky / particles.R
Created February 26, 2018 19:40 — forked from thomasp85/particles.R
Particles on CRAN
library(tidygraph)
library(particles)
library(jsonlite)
library(magick)
# Prepare text polygons
text <- read_json('text.json')
par_text <- text$layers[[3]]$paths
on_text <- text$layers[[2]]$paths
cran_text <- text$layers[[1]]$paths
@radovankavicky
radovankavicky / disable-autolinking.md
Created February 21, 2018 13:19 — forked from alexpeattie/disable-autolinking.md
Disable Github-flavored Markdown autolinking

http://example.com

http://example.com

@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
@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 / 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 / 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 <[email protected]>
## 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 / 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 / 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