Skip to content

Instantly share code, notes, and snippets.

HW4 Test Runners

group tests

wd="./test_results/"
@yitang
yitang / gist:d6420b695799101f1865
Last active May 31, 2019 05:45
Rcpp point in polygon
#include <Rcpp.h>
using namespace Rcpp;
// ref: http://geomalgorithms.com/a03-_inclusion.html
// Copyright 2000 softSurfer, 2012 Dan Sunday
// This code may be freely used and modified for any purpose
// providing that this copyright notice is included with it.
// SoftSurfer makes no warranty for this code, and cannot be held
// liable for any real or imagined damage resulting from its use.
// Users of this code must verify correctness for their application.
@yitang
yitang / drag.cpp
Last active August 17, 2016 13:07
some descriptions
#include <Rcpp.h>
#include <cmath> // ::ceil
using namespace Rcpp;
//' linear inter/extropolation.
//' combination of stats::approx and Hmisc::Hmisc.
//' @para x
//' @para y
//' @para xx where interpolation is to take place.

use gist.el in Emacs to manage gist

git config --global github.user yitang 
git config --global github.token dcxxxxxx