Skip to content

Instantly share code, notes, and snippets.

merl-dev / savitzkygolay.jl
Created May 24, 2016 — forked from jiahao/savitzkygolay.jl
An implementation of the Savitzky-Golay filter using generated functions. Accompanies
View savitzkygolay.jl
Savitzky-Golay filter of window half-width M and degree N
M is the number of points before and after to interpolate, i.e. the full width
of the window is 2M+1
immutable SavitzkyGolayFilter{M,N} end
@generated function{M,N,T}(::Type{SavitzkyGolayFilter{M,N}},
merl-dev / WordCounters.jl
Created May 28, 2016
simple word counter
View WordCounters.jl
module WordCounters
export createWordList, wordCount
function createWordList(dictfile, nsamples)
dictwords = readdlm(dictfile,'\n',AbstractString)
ln = length(dictwords)
# vector of random indices
rindices = rand(1:ln, nsamples)
# vector of random words
merl-dev /
Created Mar 22, 2017 — forked from jiahao/
Setting up Julia on an Amazon EC2 instance
#Set up data partition
sudo mkdir /data
sudo chmod 777 /data
sudo "echo /dev/xvdb /data ext4 rw,user,exec,comment=cloudconfig 0 2 >> /etc/fstab"
sudo mount /data
#Install build environment
sudo sed -i "s/enabled=0/enabled=1" /etc/yum.repos.d/epel.epo
sudo yum -y update
sudo yum -y upgrade
merl-dev /
Created Mar 28, 2017 — forked from gizmaa/
Various Julia plotting examples using PyPlot
merl-dev / Shiny server with
Created Aug 7, 2017 — forked from cosmincatalin/Shiny server with
Shiny community server with OAuth on Amazon EC2
View Shiny server with

Shiny community server with OAuth on Amazon EC2


This is detailed description of how to set-up a Shiny server (community edition) on an AWS EC2 instance, behind an OAuth2 security layer (Google OAuth2 in this case, but it can be something else).


  • A Google Developer account
  • An Amazon Web Services account
merl-dev / app.R
Created Sep 8, 2018 — forked from gluc/app.R
Shiny CRUD
View app.R
# Get table metadata. For now, just the fields
# Further development: also define field types
# and create inputs generically
GetTableMetadata <- function() {
fields <- c(id = "Id",