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("rvest") | |
library("tidyverse") | |
library("lubridate") | |
library("scales") | |
Sys.setlocale(category = "LC_TIME", locale = "en_IE") | |
dumpListApril <- read_html("https://dumps.wikimedia.org/other/pageviews/2017/2017-04/") | |
linksApril <- data_frame(filename = html_attr(html_nodes(dumpListApril, "a"), "href")) %>% # extracting links | |
filter(grepl(x = filename, "projectviews")) %>% # keeping only aggregated data by project |
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
library("rvest") | |
read_html(x = "http://www.un.org/en/member-states/") %>% | |
html_nodes(xpath = "//span[@class='member-state-name']") %>% | |
html_text() |
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("rvest") | |
library("tidyverse") | |
library("lubridate") | |
library("scales") | |
Sys.setlocale(category = "LC_TIME", locale = "en_IE") | |
dumpList <- read_html("https://dumps.wikimedia.org/other/pageviews/2017/2017-04/") | |
links <- data_frame(filename = html_attr(html_nodes(dumpList, "a"), "href")) %>% # extracting links | |
filter(grepl(x = filename, "projectviews")) %>% # keeping only aggregated data by project |
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 R R-RCurl curl-devel R-zoo R-XML openssl-devel libxml2-devel |
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
git clone [email protected]:craigcabrey/luminance.git | |
cd luminance | |
pip3 install requests | |
pip3 install netdisco | |
sudo dnf install gsettings-desktop-schemas gsettings-desktop-schemas-devel pygobject3-devel gtk3-devel | |
sudo pip3 install phue | |
./autogen.sh | |
./configure |
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
## Install castarter (devtools required for installing from github) | |
# install.packages("devtools") | |
devtools::install_github("giocomai/castarter") | |
## Load castarter | |
library("castarter") | |
## Set project and website name | |
SetCastarter(project = "EuropeanUnion", website = "EuropeanParliament") |
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("XML") | |
library("plyr") | |
countriesRu <- ldply(xmlToList(readLines("https://www.artlebedev.ru/tools/country-list/xml/")), data.frame) | |
countriesRu <- countriesRu[-1,] |
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
sub RemoveNewLine | |
rem ---------------------------------------------------------------------- | |
rem define variables | |
dim document as object | |
dim dispatcher as object | |
rem ---------------------------------------------------------------------- | |
rem get access to the document | |
document = ThisComponent.CurrentController.Frame | |
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") |
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 () { |
NewerOlder