- Functions f(x) = x^2 f(x) = sin(x) f(x) = x + 5 f(x) = 2x
- Iteration of functions f(x) = x^2
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
;-*-ledger-*- | |
~ Monthly | |
Expenses:Rent 5000 Rs | |
Expenses:Groceries 3500 Rs | |
Expenses:Domestic 4000 Rs | |
Expenses:Electricity 1500 Rs | |
Expenses:Entertainment 2000 Rs | |
Expenses:Food 1000 Rs | |
Expenses:Fitness 500 Rs | |
Expenses:Hosting 2500 Rs |
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
2015/11/01 Initial balance | |
Assets:Business 50000 Rs | |
Assets:Savings 15000 Rs | |
; Some amount still there on the credit card | |
Liabilities:CC -2500 Rs | |
Equity | |
2015/11/01 Personal Salary | |
; I give myself a fixed amount of money at the beginning |
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
Fountain pens: | |
- Sheaffer calligraphy set | |
- Parker calligraphy set | |
Nib holders | |
- Speedball | |
- Cretacolour | |
Nibs | |
- Speedball |
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
watch_build () { | |
while inotifywait -r -e modify $* | |
do | |
make | |
done | |
} |
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
# With gcc | |
noufal@sanitarium% CFLAGS=-Wall make foo | |
cc -Wall foo.c -o foo | |
# With clang | |
noufal@sanitarium% CFLAGS=-Wall CC==clang make foo | |
/home/noufal/local/bin//clang -Wall foo.c -o foo | |
foo.c:7:9: warning: variable 'iters' is uninitialized when used here [-Wuninitialized] | |
while(iters++ <= 100) { |
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
showrepo () { | |
img=$(tempfile -s.png) | |
~/bin/showrepo.rb $1 | dot -Tpng > $img | |
echo $img | |
qiv $img | |
} | |
showdag () { | |
img=$(tempfile -s.png) |
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
ARCHIVE_DIR=/home/noufal/projects/emacsmovies.org/videos | |
all: generate archive | |
upload: generate | |
curl --location --header "authorization: LOW xxxx:yyyy" --upload-file ./${number}-episode-${name}.webm http://s3.us.archive.org/EmacsMovies/${number}-episode-${name}.webm | |
curl --location --header "authorization: LOW xxxx:yyyy" --upload-file ./${number}-episode-${name}.mkv http://s3.us.archive.org/EmacsMovies/${number}-episode-${name}.mkv | |
archive: ${number}-episode-${name}.webm |
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
(defun nkv/stop-here (pos) | |
(interactive "d") | |
(let ( | |
(trace-command "import pdb; pdb.set_trace()") | |
) | |
(save-excursion | |
(save-restriction | |
(widen) | |
(goto-char (point-min)) | |
(search-forward trace-command nil t) |
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 python | |
import pygame | |
from pygame.locals import * | |
from pygame.color import Color | |
from pygments.lexers import PythonLexer | |
from pygments.styles.emacs import EmacsStyle | |