Skip to content

Instantly share code, notes, and snippets.

Joshua Ulrich joshuaulrich

Block or report user

Report or block joshuaulrich

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
flare9x / R Simple Back Test Script - 30min ES.R
Last active Apr 11, 2018
R Simple Back Test Script - 30min ES
View R Simple Back Test Script - 30min ES.R
# Back test simple moving average strategy
# Use 30min ES Data
out_results <- data.frame()
aortbals /
Last active Nov 21, 2019
Squash and Merge on the Command line

With the introduction of GitHub's Squash and Merge feature, this has become less prevelant, however it's still useful in scenarios where GitHub's interface is unavailable.

Let's talk through two ways to do a squash and merge on the command line.

Take 1: Interactive Rebase

When to use it

  • When you have not merged master into your feature branch
  • There are no merge conflicts
romainfrancois / output.txt
Created Dec 14, 2013
Extract promises and their environments from ...
View output.txt
> f <- function(...) {
+ promises(environment())
+ }
> g <- function(x = 3, ...) {
+ z <- 4
+ f(z = z, ..., x = x)
+ }
> h <- function(..., a = 2) {
halpo / Makefile
Created Nov 17, 2011
Makefile for R Packages
View Makefile
# Makefile for generating R packages.
# 2011 Andrew Redd
# Assumes Makefile is in a folder where package contents are in a subfolder pkg.
# Roxygen uses the roxygen2 package, and will run automatically on check and all.
PKG_VERSION=$(shell grep -i ^version pkg/DESCRIPTION | cut -d : -d \ -f 2)
PKG_NAME=$(shell grep -i ^package pkg/DESCRIPTION | cut -d : -d \ -f 2)
R_FILES := $(wildcard pkg/R/*.R)
You can’t perform that action at this time.