Skip to content

Instantly share code, notes, and snippets.

@ngfrey
ngfrey / server.R
Created August 17, 2017 15:55 — forked from jcheng5/server.R
library(shiny)
library(magrittr)
shinyServer(function(input, output, session) {
#__________________________________________________________________________________
# The main named list that will be used in many other tasks.
listN <- reactiveValues()
makeReactiveBinding("listN")
@ngfrey
ngfrey / server.R
Created February 24, 2019 23:16 — forked from trestletech/server.R
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
@ngfrey
ngfrey / server.R
Created March 18, 2019 19:46 — forked from chibondking/server.R
Portfolio Analytics Shiny App
library(PerformanceAnalytics)
library(PortfolioAnalytics)
library(quantmod)
options( error = recover )
fastCovMcdEstimator <- function(x, spec=NULL,...) {
covMcdEstimate
}
@ngfrey
ngfrey / README.md
Created January 27, 2020 19:58 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@ngfrey
ngfrey / global.R
Created April 23, 2020 18:59 — forked from jcheng5/global.R
###############################################
##
## Attempt no 2 at building a shiny web app
## for AB Testing use - using global.R
##
## global.R - loading and defining variables for the global environment
##
###############################################
# Pallette used in some charts as a general indicator color for better or worse that the control group