Skip to content

Instantly share code, notes, and snippets.

View fidadoma's full-sized avatar

Filip Dechterenko fidadoma

  • Institute of Psychology, The Czech Academy of Sciences
  • Prague
View GitHub Profile
@fidadoma
fidadoma / send_gosms.R
Last active January 31, 2024 11:13
short script to send sms using gosms.cz (czech numbers)
# the following script worked Feb-2024, not sure, whether the API wont change
# it is pretty cheap - 1CZK per message (again, this could be cheaper with better pricing plan)
library(tidyverse)
library(httr2)
# you need to register for gosms.eu
# you will need your client_id, client_secret and channel_id
# store those in variables
client_id <- "your client id"
@fidadoma
fidadoma / get_osf_data
Created October 1, 2019 14:48
Script for downloading data from osf
# when data are in private repo on osf, we want to download them prior to the analysis
# load tidyverse
library(tidyverse)
# install package to communicate with osf.io. Check the github repo for guidelines
library(osfr)
# function to download data using dplyr do() function
download_files <- function(df, local_data_pth, should_overwrite = T) {