Skip to content

Instantly share code, notes, and snippets.

View juba's full-sized avatar

Julien Barnier juba

View GitHub Profile
@omarish
omarish / cumsum.js
Created December 16, 2010 23:47
simple cumulative sum in javascript.
cumsum = [];
j = [0,1,2,3,4];
for(var a=0;a<j.length;a++) {
if(a==0) cumsum[a] = j[0];
else cumsum[a] = cumsum[a-1] + j[a];
}
@Fil
Fil / .gitignore
Last active September 26, 2015 16:08
Outil pour créer une copie locale statique de "mes" seens
# ma config
seen-local-config.php
# stockage de mon backup xml
tmp/
# mes fichiers exportes
seen/
# mes fichiers downloades
@halpo
halpo / knitr.mk
Created November 29, 2011 18:55
knitr makefile
################################################################################
# Copyright 2011
# Andrew Redd
# 11/23/2011
#
# Description of File:
# Makefile for knitr compiling
#
################################################################################
all:pdf # default rule DO NOT EDIT
@mbostock
mbostock / .block
Last active April 3, 2020 23:49
Pan & Zoom Axes
license: gpl-3.0
redirect: https://observablehq.com/@d3/zoomable-scatterplot
@mikmart
mikmart / matsums.cpp
Last active February 12, 2020 14:52
Different ways to calculate row/col sums in C++
#define RCPP_ARMADILLO_RETURN_ANYVEC_AS_VECTOR
#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
using namespace Rcpp;
// Cols ----------------
// [[Rcpp::export]]
@statnmap
statnmap / vscode_r_users_extensions.md
Last active December 12, 2021 19:53
VSCode R users extensions