Skip to content

Instantly share code, notes, and snippets.

View ojessen's full-sized avatar

Owe Jessen ojessen

View GitHub Profile
@jcheng5
jcheng5 / css.R
Last active August 29, 2015 13:56
CSS DSL for R
library(shiny)
css <- local({
cssRules <- function(rules) {
paste(
' ',
gsub('.', '-', names(rules), fixed = TRUE),
': ',
rules,
';',
@withr
withr / server.R
Last active January 8, 2025 22:43
Encrypt password with md5 for Shiny-app.
library(shiny)
library(datasets)
Logged = FALSE;
PASSWORD <- data.frame(Brukernavn = "withr", Passord = "25d55ad283aa400af464c76d713c07ad")
# Define server logic required to summarize and view the selected dataset
shinyServer(function(input, output) {
source("www/Login.R", local = TRUE)
observe({
if (USER$Logged == TRUE) {
@HarishChaudhari
HarishChaudhari / country-code-to-currency-code-mapping.csv
Last active May 19, 2025 22:24
Country, Country Code, Currency code mapping in CSV format Taken from https://gist.github.com/304261 Contains 249 countries.
Country CountryCode Currency Code
New Zealand NZ New Zealand Dollars NZD
Cook Islands CK New Zealand Dollars NZD
Niue NU New Zealand Dollars NZD
Pitcairn PN New Zealand Dollars NZD
Tokelau TK New Zealand Dollars NZD
Australian AU Australian Dollars AUD
Christmas Island CX Australian Dollars AUD
Cocos (Keeling) Islands CC Australian Dollars AUD
Heard and Mc Donald Islands HM Australian Dollars AUD