(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
%% Math %% | |
si = @(x) sin(x) ./ (x + (x==0)); % cardinal sine without pi multiplied argument | |
hsin = @(x) 0.5 * (1.0 - cos(x)); % haversed sine | |
hcos = @(x) 0.5 * (1.0 + cos(x)); % haversed cosine | |
sigm = @(x,k) 0.5 * tanh(0.5 * k * x) + 0.5; % sigmoid function to (exp(-kx)+1)^-1 |
; Packed shepherd together with mincemeat for convenience | |
(import [mincemeat.shepherd [run_server]]) | |
; chunker is temporarily broken | |
;(defn chunker [gen size] | |
; (let [[gen (iter gen)] | |
; [chunk []] | |
; (try | |
; (while True | |
; (for [_ (xrange size)] |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore
file and add .gitignore.branch_name
files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place
of .git/info/exclude
each time I go to the branch with git checkout branch_name
.
sudo apt-get install -y build-essential wget gcc g++ texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev | |
#Download Emacs 24.5+ source code | |
wget ftp://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.gz | |
tar -zxvf emacs-24.5.tar.gz | |
cd emacs-24.5 | |
./configure |
XML configuration files for compiling MATLAB MEX-files using VS2017. Tested on Windows 10 64-bit with MATLAB R2016b and Visual Studio 2017 (Enterprise Edition), but it should also work with the Community Edition.
MATLABROOT\bin\win64\mexopts
(this might trigger a UAC prompt).mex -setup
and mex -setup C++
in MATLAB, and select VS2017 compilers.>> mex -v -largeArrayDims test.cpp