This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://projects.fivethirtyeight.com/2024-election-forecast/ | |
| # https://projects.fivethirtyeight.com/2020-election-forecast/ | |
| # https://projects.fivethirtyeight.com/2016-election-forecast/ | |
| # install.packages("remotes") | |
| remotes::install_github("EDJNet/riskviewer") | |
| ## N.B. the visualisation barely holds together, breaks down when changing aspect ratio | |
| library("riskviewer") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sudo dnf install udunits2 udunits2-devel | |
| install.packages("udunits2", configure.args = c(udunits2 = '--with-udunits2-include=/usr/include/udunits2')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://discuss-data.net/dataset/dae0b5b8-157f-471a-bb3c-ea24e0b2a7f7/ | |
| # remotes::install_github("giocomai/castarter") | |
| library("castarter") | |
| corpus_name <- "zavtra.ru_ru_2024" | |
| corpus_file <- paste0(corpus_name, ".csv.gz", collapse = "") | |
| ## Step 1: Download the corpus #### | |
| # download `zavtra.ru_ru_2024.csv.gz` from the main repository, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dnf install qt-devel hunspell-devel qt5-qtwebkit-devel qt5-qtsvg-devel qt5-qtsvg-devel qt5-qtmultimedia-devel qt5-qtbase qt5-linguist qt5-qtwebengine-devel | |
| wget https://github.com/wereturtle/ghostwriter/archive/v1.8.0.tar.gz | |
| tar -xvzf v1.8.0.tar.gz | |
| cd ghostwriter-1.8.0/ | |
| /usr/lib64/qt5/bin/qmake-qt5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://en.wikipedia.org/wiki/List_of_Academy_Award-winning_films | |
| library("dplyr", warn.conflicts = FALSE) | |
| library("tidywikidatar") | |
| library("ggplot2") | |
| # https://github.com/ivelasq/severance | |
| library(severance) | |
| tw_set_language(language = "en") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var system = require('system'); | |
| var page = require('webpage').create(); | |
| var url = system.args[1]; | |
| var destination = system.args[2]; | |
| page.settings.resourceTimeout = 10000; | |
| setTimeout(function(){ | |
| setInterval(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library("dplyr", warn.conflicts = FALSE) # data wrangling | |
| library("tidywikidatar") | |
| tw_enable_cache() | |
| tw_set_cache_folder(path = fs::path(fs::path_home_r(), | |
| "R", | |
| "tw_data")) | |
| tw_create_cache_folder(ask = FALSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #remotes::install_github("giocomai/latlon2map") | |
| library("latlon2map") | |
| ll_set_folder(path = "~/R") | |
| library("ggplot2") | |
| library("dplyr") | |
| library("sf") | |
| # recupera griglia di esempio come oggetto sf | |
| if (file.exists("base_grid.rds")==FALSE) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| libreoffice: | |
| image: libreoffice/online:master | |
| environment: | |
| - "domain=nextcloud\\.example\\.com" | |
| - "SLEEPFORDEBUGGER=0" | |
| - "username=user" | |
| - "password=actualgoodpassword" | |
| - "extra_params=--o:ssl.enable=false --o:ssl.termination=true" | |
| networks: | |
| network1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Sibiu 1934 historic map" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) | |
| library("tidyverse") | |
| library("leaflet") | |
| library("leaflet.opacity") |
NewerOlder