Skip to content

Instantly share code, notes, and snippets.

View komalsrathi's full-sized avatar
🌎
Working from home

Komal Rathi komalsrathi

🌎
Working from home
View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@sabarasaba
sabarasaba / gist:3080590
Created July 10, 2012 02:19
Remove directory from remote repository after adding them to .gitignore
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@reinholdsson
reinholdsson / server.R
Last active June 22, 2021 21:15
Shiny + mongoDB example
library(rmongodb)
shinyServer(function(input, output) {
key <- reactive({
paste(input$key, "data", sep = ".")
})
output$show <- renderText({
# Create some sample data
CV_1 <- 0.2
CV_2 <- 0.3
Mean <- 65
sigma_1 <- sqrt(log(1 + CV_1^2))
mu_1 <- log(Mean) - sigma_1^2 / 2
sigma_2 <- sqrt(log(1 + CV_2^2))
mu_2 <- log(Mean) - sigma_2^2 / 2
q <- c(0.25, 0.5, 0.75, 0.9, 0.95)
SummaryTable <- data.frame(
@aagarw30
aagarw30 / server.r
Created March 13, 2016 08:19
R Shiny Demo - how to embed pdf into shiny app
library(shiny)
shinyServer(function(input, output,session){
})