This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qr_decomp() | |
Qs = cell(); | |
m0 = reshape(1:9, [3, 3])' | |
m = m0; | |
k = 0; | |
[Q, Qm] = qr1(m); | |
Q = [eye(k) zeros([k size(m, 2)]); | |
zeros([size(m, 1) k]) Q]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns statistics.lazy.rand | |
(:require [clojure.math :as math])) | |
(defn rand-gaussian | |
"Get a random sample from the standard Gaussian distribution. | |
Optionall specify the mean m and the standard deviation sd. E.g.: | |
(rand-gaussian) # => 0.1324... | |
(rand-gaussian 5 0.1) # => 5.3397... | |
" | |
([] (rand-gaussian 0 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jojofjaeofje | |
fjasefjiesofj | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" Prevent various Vim features from keeping the contents of pass(1) password | |
" files (or any other purely temporary files) in plaintext on the system. | |
" | |
" Either append this to the end of your .vimrc, or install it as a plugin with | |
" a plugin manager like Tim Pope's Pathogen. | |
" | |
" Author: Tom Ryder <[email protected]> | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md)) | |
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md)) | |
all : $(SLIDES) $(HANDOUTS) | |
%.md.slides.pdf : %.md | |
pandoc $^ -t beamer --slide-level 2 -o $@ | |
%.md.handout.pdf : %.md | |
pandoc $^ -t beamer --slide-level 2 -V handout -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generates gource video (h.264) out of multiple repositories. | |
# Pass the repositories in command line arguments. | |
# Example: | |
# <this.sh> /path/to/repo1 /path/to/repo2 | |
RESOLUTION="1600x1080" | |
outfile="gource.mp4" | |
i=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
gource commands | |
################################ | |
# basic command for big and long projects | |
gource --max-user-speed 500 --seconds-per-day 0.05 --file-idle-time 10 -e 0.005 -f --max-files 300 --hide-files | |
# some easy to understand commands | |
# for output file | |
--output-ppm-stream ~/ppm/ppm-kohana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -v -T [email protected] | |
OpenSSH_6.9p1 Debian-1, OpenSSL 1.0.2d 9 Jul 2015 | |
debug1: Reading configuration data /home/user/.ssh/config | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 19: Applying options for * | |
debug1: Connecting to github.com [192.30.252.130] port 22. | |
debug1: Connection established. | |
debug1: identity file /home/user/.ssh/id_rsa type 1 | |
debug1: key_load_public: No such file or directory | |
debug1: identity file /home/user/.ssh/id_rsa-cert type -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.0.1.0/24 | |
1.0.2.0/23 | |
1.0.8.0/21 | |
1.0.32.0/19 | |
1.1.0.0/24 | |
1.1.2.0/23 | |
1.1.4.0/22 | |
1.1.8.0/21 | |
1.1.16.0/20 | |
1.1.32.0/19 |