This file contains 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
get_Google_Elevation <- function(lat, long, key){ | |
# packages | |
require(httr) | |
require(jsonlite) | |
require(dplyr) | |
# setup | |
Ndata <- length(lat) | |
base_int <- 40 # max roughly 40 data points per request | |
Ncells <- ceiling(Ndata/base_int) |
This file contains 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(tidyverse) | |
# https://github.com/fawda123/rStrava | |
library(rStrava) | |
library(yaml) | |
library(feather) | |
options(scipen = '999') | |
# Get access / authentication token for Strava's API | |
credentials <- yaml::yaml.load_file(input = 'credentials/credentials.yaml') |
This file contains 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
# Assuming the following GraphQL: https://github.com/calebmer/postgraphql/tree/master/examples/forum | |
# Deploy to AWS via https://github.com/rentrop/serverless-postgraphql | |
require(httr) | |
require(jsonlite) | |
# Define helper function -------------------------------------------------- | |
url <- "https://your-endpoint/graphql" | |
GQL <- function(query, |
This file contains 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
#!/bin/sh | |
# Written by: Keefer Rourke <https://krourke.org> | |
# Based on AUR package <https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ttf-google-fonts-git> | |
# dependancies: fonts-cantarell, ttf-ubuntu-font-family, git | |
sudo apt-get install fonts-cantarell ttf-ubuntu-font-family git | |
srcdir="/tmp/google-fonts" | |
pkgdir="/usr/share/fonts/truetype/google-fonts" | |
giturl="git://github.com/google/fonts.git" |
This file contains 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
#### Log in module ### | |
PASSWORD <- data.frame( | |
Brukernavn = c("ray","gil"), | |
Passord = c("0000","1234") | |
) | |
output$uiLogin <- renderUI({ | |
if (USER$Logged == FALSE) { | |
wellPanel( |