Class names are CamelCase
.
Methods and variables are snake_case
.
Methods with a ?
suffix will return a boolean.
#! /usr/bin/env bash | |
# Install any build dependencies needed for curl | |
sudo apt-get build-dep curl | |
# Get latest (as of Feb 25, 2016) libcurl | |
mkdir ~/curl | |
cd ~/curl | |
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2 | |
tar -xvjf curl-7.50.2.tar.bz2 |
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)] |
Code | Lab | Country | Active | |
---|---|---|---|---|
A | University of Arizona | USA | 1 | |
AA | NSF-Ariz. AMS Facility | USA | 1 | |
AAR | University of Aarhus | Denmark | 1 | |
AC | Ingeis | Argentina | 1 | |
AECV | Alberta Environmental Center of Vegreville | Canada | 0 | |
AERIK | Atomic Energy Res. Inst. | Korea | 0 | |
ALG | Algiers | Algeria | 0 | |
ANAS | Applied Nuclear-Atomic Science (ANAS) Lab. | South Korea | 1 | |
ANL | Argonne Nat. Lab. | USA | 0 |
lseq <- function(from=1, to=100000, length.out=6) { | |
# logarithmic spaced sequence | |
# blatantly stolen from library("emdbook"), because need only this | |
exp(seq(log(from), log(to), length.out = length.out)) | |
} |
module Calc | |
( Expr(..) | |
, parse | |
, calculate | |
) where | |
import Control.Applicative | |
import Parser | |
data Expr = Add Expr Expr |
--- | |
title: "test" | |
author: "Richard Smith-Unna" | |
date: "21 May 2015" | |
output: html_document | |
--- | |
Demo of reading an R file and dumping it raw into the HTML produced by knitr from RMarkdown, to get syntax highlighting. | |
Put the code you want to display in `import.R`. |
# Ruby is our language as asciidoctor is a ruby gem. | |
lang: ruby | |
before_install: | |
- sudo apt-get install pandoc | |
- gem install asciidoctor | |
script: | |
- make | |
after_success: | |
- .travis/push.sh | |
env: |
#!/path/2/Rscript | |
# License: CC0 (just be nice and point others to where you got this) | |
# Author: Robert M Flight <[email protected]>, github.com/rmflight | |
# | |
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION | |
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have | |
# good reasons for not doing it on the pre-commit. | |
# | |
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make |
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |