Skip to content

Instantly share code, notes, and snippets.

intg =
0 0 0
0.0001 0.0001 0.0000
0.0002 0.0004 0.0000
0.0005 0.0009 0.0000
0.0008 0.0016 0.0000
0.0013 0.0026 0.0000
0.0018 0.0037 0.0001
0.0025 0.0050 0.0001
0.0033 0.0065 0.0002
@drizzd
drizzd / extract.m
Created May 10, 2011 20:28
matlab vector out-of-bounds access
function y = extract(x, start, len, step)
% EXTRACT extract window from vector
% y = extract(x, start, len, step)
%
% Returns x(start:step:start+step*len, :). Out-of-range values are filled with
% zeroes.
%
% See also biextract.
%
lkjasdl;kfjasdf
function x = fft_dit(x)
% FFT_DIT decimation in time fast fourier transform
% x = fft_dit(x)
%
% Compute fourier transform of x by the decimation in time FFT.
%
% fft(x) = fft_dit(bitrevorder(x))
%
% See also fft_dif.
%
sdsdf
#!/bin/sh
blob=0e3e20a3fd38f6f99da44483ee0bb9753f2b217;
git rev-list --objects --all | \
cut -f1 -d' ' | \
git cat-file --batch-check | \
sed -n 's/ tree .*//p' | \
while read tree; do \
git ls-tree $tree | grep $blob; \
done
#!/bin/sh
workdir="$PWD"
jail=`mktemp -d`
tmpdir=${TMPDIR:-/tmp}
if ! expr "$jail" : "$tmpdir/.*" >/dev/null
then
| echo "could not create temporary directory: '$jail'" >&2
| exit 1
fi
* checking known breakage:
cp -R "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git \
"$HTTPD_DOCUMENT_ROOT_PATH"/test_repo_packed.git &&
git clone $HTTPD_URL/test_repo_packed.git \
"$ROOT_PATH"/test_repo_clone_packed &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo_packed.git &&
git --bare repack &&
git --bare prune-packed) &&
We couldn’t find that file to show.
We couldn’t find that file to show.