Skip to content

Instantly share code, notes, and snippets.

@simecek
simecek / 1-mnist-with-keras.ipynb
Created May 15, 2018 00:47
1-mnist-with-keras.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / draw_board.R
Last active September 13, 2018 16:45
if (!require(tidyverse)) {
install.packages("tidyverse")
library(tidyverse)
}
# Game of Life visualisation
draw_board <- function(board) {
# number of rows and columns
M = nrow(board)
@simecek
simecek / timeline_scraping.ipynb
Created August 27, 2018 20:58
Timeline_scraping.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / lru_cache-decorator.ipynb
Created August 26, 2018 23:24
lru_cache decorator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / a-simple-animation-the-magic-triangle.ipynb
Last active October 11, 2018 06:13
A Simple Animation: The Magic Triangle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / print-is-a-function-now.ipynb
Created July 31, 2018 07:32
Print is a function now.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / gif_imageio.ipynb
Created July 30, 2018 07:52
GIF_imageio.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / debug-magic.ipynb
Created September 23, 2018 00:02
Debug magic.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Likes per tweet plot
# Analyze user's data downloaded from Twitter
library(jsonlite)
library(tidyverse)
# download your data from Twitter (Settings and Privacy, Your Twitter data), unzip the folder
setwd("~/Downloads/twitter-2018-10-29-6c18f5c0ab3605451f73cd0fd9ed186a2fd5b2caf1812ab747d42351da805656/")
json <- readLines("tweet.js")
@simecek
simecek / numpy-append-is-slow.ipynb
Created December 18, 2018 11:45
Numpy append is slow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.