Skip to content

Instantly share code, notes, and snippets.

View viniciuszendron's full-sized avatar

Vinícius Zendron viniciuszendron

View GitHub Profile
@helgasoft
helgasoft / app.R
Last active November 14, 2020 15:47
Demo - using Leaflet JS plugins in R and Shiny
# Demo - using Leaflet JS plugins in R and Shiny
# directions from https://gist.github.com/jcheng5/c084a59717f18e947a17955007dc5f92
# implementing an Opacity plugin that works for tile-layers only:
# https://github.com/dayjournal/Leaflet.Control.Opacity
# download js/css files first, see note (2) below
library(shiny)
library(leaflet)
library(htmlwidgets)
@calligross
calligross / app.R
Last active August 23, 2023 17:22
Shiny Cookie Based Authentication Example, please visit https://calligross.de/post/using-cookie-based-authentication-with-shiny/ for more information.
library(shiny)
library(shinyjs)
if (!dir.exists('www/')) {
dir.create('www')
}
download.file(
url = 'https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js',
destfile = 'www/js.cookie.js'
@jcheng5
jcheng5 / README.md
Last active December 15, 2022 16:01
Using arbitrary Leaflet plugins with Leaflet for R

Using arbitrary Leaflet JS plugins with Leaflet for R

The Leaflet JS mapping library has lots of plugins available. The Leaflet package for R provides direct support for some, but far from all, of these plugins, by providing R functions for invoking the plugins.

If you as an R user find yourself wanting to use a Leaflet plugin that isn't directly supported in the R package, you can use the technique shown here to load the plugin yourself and invoke it using JS code.

@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active May 27, 2024 20:46
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04