Skip to content

Instantly share code, notes, and snippets.

View Planeshifter's full-sized avatar
🎯
Focusing

Philipp Burckhardt Planeshifter

🎯
Focusing
View GitHub Profile
@Planeshifter
Planeshifter / gist:6536299
Last active December 22, 2015 21:49
Get PDF of sum of two Uniforms (Mathematica)
PDF[TransformedDistribution[
x + y, {Distributed[x, UniformDistribution[{0, 1}]],
Distributed[y, UniformDistribution[{-2, 2}]]}], z]
@Planeshifter
Planeshifter / gist:6107864
Created July 29, 2013 21:09
Creates a node process and directs the output to a log file
nohup node DatabaseQuery.js > output.log
@Planeshifter
Planeshifter / gist:5847130
Last active December 18, 2015 21:28
Print the length of a std::vector of strings.
#include <Rcpp.h>
#include <string>
#include <vector>
// [[Rcpp::export]]
void print_vector(vector<std::string> input)
{
for( std::vector<string>::iterator i = input.begin(); i != input.end(); ++i)