Skip to content

Instantly share code, notes, and snippets.

View skvrnami's full-sized avatar
🛠️

Michael Škvrňák skvrnami

🛠️
View GitHub Profile
library(dplyr)
library(ggplot2)
library(statnipokladna)
local_budgets <- sp_get_table(table_id = "budget-local", # table ID, see `sp_tables`
year = 2020,
month = 12,
dest_dir = "data/budget_data")
functional_categories <- sp_get_codelist("paragraf",
dest_dir = "data/budget_data")
library(dplyr)
library(rvest)
html <- read_xml("https://rejstriky.msmt.cz/opendata/vrejcelk.xml", as_html = TRUE)
subjekty <- html %>%
html_nodes("pravnisubjekt")
parse_skola <- function(subjekt){
tibble(
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:19
Presidential candidates' ads: 25
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:19
Presidential candidates' ads: 24
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:19
Presidential candidates' ads: 23
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:19
Presidential candidates' ads: 22
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:19
Presidential candidates' ads: 21
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:18
Presidential candidates' ads: 20
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:18
Presidential candidates' ads: 19
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@skvrnami
skvrnami / d3.v3.js
Created November 17, 2022 20:18
Presidential candidates' ads: 18
d3 = function() {
var d3 = {
version: "3.2.7"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");