Skip to content

Instantly share code, notes, and snippets.

View moldach's full-sized avatar

Matthew J. Oldach moldach

View GitHub Profile
@emilyriederer
emilyriederer / dynamic-tabset-colors.Rmd
Last active August 3, 2022 09:37
Generate <style> block of CSS to change tabset colors by a condition
---
title: "Untitled"
author: "Emily Riederer"
date: "5/15/2019"
output: html_document
---
```{r}
# dummy data
data <- data.frame(
@muschellij2
muschellij2 / rgl_tryout.Rmd
Created October 30, 2018 03:01
Example of 3D Image using RGL and misc3d
---
title: "RGL Example"
author: "John Muschelli"
date: "10/29/2018"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
@aagarw30
aagarw30 / server.r
Last active January 5, 2022 17:55
R Shiny Download GGPLOT demo
library(shiny)
library(ggplot2)
shinyServer(function(input,output)({
# x contains all the observations of the x variable selected by the user. X is a reactive function
x <- reactive({
iris[,as.numeric(input$var1)]
})
# x contains all the observations of the y variable selected by the user. Y is a reactive function
y <- reactive({
iris[,as.numeric(input$var2)]
@hyer
hyer / install-ffmpeg.sh
Last active October 9, 2021 17:26
installing ffmpeg from source code.
# You should download the ffmpeg source code from the http://ffmpeg.org/
# libx264 need yasm, so we install yasm first
sudo apt-get install yasm
sudo apt-get install libx264-dev
# then, install the required packages
sudo apt-get install libfaac-dev
sudo apt-get install libmp3lame-dev
sudo apt-get install libtheora-dev
@FrancesCoronel
FrancesCoronel / sampleREADME.md
Last active March 26, 2024 01:21
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@mathsam
mathsam / PBS_sample.sh
Created August 10, 2013 19:02
Sample PBS script
# Sample PBS job script
#
# Copy this script, customize it and then submit it with the ``qsub''
# command. For example:
#
# cp pbs-template.sh myjob-pbs.sh
# {emacs|vi} myjob-pbs.sh
# qsub myjob-pbs.sh
#
# PBS directives are fully documented in the ``qsub'' man page. Directives