Skip to content

Instantly share code, notes, and snippets.

View Marlin-Na's full-sized avatar
💤
Waiting for Godot

Marlin Marlin-Na

💤
Waiting for Godot
  • Betelgeuse VII
View GitHub Profile
@Marlin-Na
Marlin-Na / shit.md
Created February 17, 2018 13:56 — forked from jeroen/shit.md
Getting shit to work

Getting shit to work

Disclaimers

  • No authority
  • Official reference is writing r extentions (joke extentions)
  • If you thought writing regular r packages was tricky, hold on
@Marlin-Na
Marlin-Na / mRunif.c
Created November 2, 2017 09:34 — forked from Sharpie/mRunif.c
An example of calling R functions from C
//myRunif.c
#include <R.h>
#include <Rinternals.h>
SEXP myRunif( SEXP n, SEXP min, SEXP max ){
SEXP statsPackage;
PROTECT(
statsPackage = eval( lang2( install("getNamespace"),
ScalarString(mkChar("stats")) ),
@Marlin-Na
Marlin-Na / 0_reuse_code.js
Created September 26, 2017 08:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console