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
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
"Kraal's release" by "Noufal Ibrahim" | |
The story genre is "Horror". | |
Release along with an interpreter. | |
Release along with cover art ("A ring"). | |
when play begins: | |
display the boxed quotation "The oldest and strongest emotion of mankind is fear. |
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
(defun sort-lines-by-length (b e) | |
(interactive "r") | |
(save-excursion | |
(save-restriction | |
(narrow-to-region b e) | |
(let ((items (sort | |
(split-string | |
(buffer-substring (point-min) (point-max)) "[\n]") | |
(lambda(x y) (< (length x) (length y))))) | |
) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import json | |
import math | |
import sys | |
#import pprint | |
## You should probably close the file before returning d here. Use a | |
## with statement | |
def parse_file(filename): | |
f = open(filename, "rt") |
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
import subprocess | |
import datetime | |
import urllib.request | |
def interesting_commodity(commodities, line): | |
"""Returns True if the given line has one of the given commodities""" | |
for c in commodities: | |
if c in line: | |
return True | |
return False |
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
** Introduction (all the points inside Setup) | |
- Introduction to domain - user stories | |
- A book club | |
- Users | |
- Create a user | |
- User should be able to login | |
- Books | |
- Decide on fields that a book should have | |
- User should be able to add a books | |
- User should be able to list books |