Skip to content

Instantly share code, notes, and snippets.

View arnaudbenard's full-sized avatar

Arnaud Benard arnaudbenard

View GitHub Profile
@arnaudbenard
arnaudbenard / gist:4383890
Created December 26, 2012 23:19
Simplest Makefile
#Simple makefile
PROGRAMS = main
all:
g++ main.cpp -o $(PROGRAMS)
clean:
rm -f *.o $(PROGRAMS)
@arnaudbenard
arnaudbenard / gist:4322928
Created December 17, 2012 22:23
Curvefit in Igor Pro
#pragma rtGlobals=1 // Use modern global access method.
function tiltcompensation(spiralxsen,spiralysen,spiralzfast)
wave spiralxsen,spiralysen,spiralzfast
wave xfit,zfit,yfit
wave W_StatsLinearCorrelationTest,spiraltilt
wave spiraldiv,lineRatio
variable x_corr,y_corr
@arnaudbenard
arnaudbenard / gist:4040745
Created November 8, 2012 18:54
matlab mex
#
# mexopts.sh Shell script for configuring MEX-file creation script,
# mex. These options were tested with the specified compiler.
#
# usage: Do not call this file directly; it is sourced by the
# mex shell script. Modify only if you don't like the
# defaults after running mex. No spaces are allowed
# around the '=' in the variable assignment.
#
# Note: For the version of system compiler supported with this release,
@arnaudbenard
arnaudbenard / gist:4004786
Created November 2, 2012 22:36
Copy paste for ffmpeg
#!/usr/bin/ruby
require "fileutils"
#infos about the images
prefix= "X10s100l5m_MOV4_topo_";
beginning= 5;
ending=114;
produce_name = "img";