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 time | |
l = 20 | |
q = ['.']*l | |
i = 0 | |
f = 1 | |
while True: | |
i+=1 | |
p = q[:] | |
m = 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
#include <stdio.h> | |
void delay( unsigned int value) | |
{ | |
unsigned int count1 =0; | |
unsigned int count2 = 0; | |
for(count1 = 0; count1 < value ; count1++ ) | |
{ | |
for(count2 = 0; count2 < count1 ; count2++ ) |
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
#include <stdio.h> | |
int | |
main () | |
{ | |
printf ("Hello, world!\n"); | |
return 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
** 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 |
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
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") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
#!/usr/bin/env python | |
import sys | |
import subprocess | |
PIPE_BUFFER_NAME="*piped*" | |
def execute_command(c): | |
cmd = ["/usr/bin/emacsclient", "-n", "-e", c] | |
p = subprocess.Popen(cmd, stdout=subprocess.DEVNULL) |
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. |
NewerOlder