Submission for CS50x online course by Harvard University. Link to edX
My Project: A randomized 4 way soccer made with scratch: https://scratch.mit.edu/projects/170768406/
hello.c : prints hello, world
~/workspace/pset1/ (master) $ ./hello
hello, world
water.c : a program to convert shower's length (in minutes) to equivalent water bottles
~/workspace/pset1/ (master) $ ./water
minutes: 10
bottles: 120
mario.c : a program that recreates half-pyramid using hashes (#) for blocks.
~/workspace/pset1/ (master) $ ./mario
height: 8
##
###
####
#####
######
#######
########
#########
greedy.c : a program that converts your money to quarters (25¢), dimes (10¢), nickels (5¢), and pennies (1¢). Rule: Use the least number of coins.
~/workspace/pset1/ (master) $ ./greedy
O hai! How much change is owed?
0.41
4 coins
initials.c: a program that given a person’s name, prints a person’s initials.
~/workspace/pset2/ (master) $ ./initials
Harry James Potter
HJP
caesar.c : a program to caesar cipher a text
~/workspace/pset2/ (master) $ ./caesar 13
Be sure to drink your Ovaltine!
Or fher gb qevax lbhe Binygvar!
vigenere.c : a program to vigenere cipher a text
~/workspace/pset2/ (master) $ ./vigenere bacon
Meet me at the park at eleven am
Negh zf av huf pcfx bt gzrwep oz
fifteen.c : a game of fifteen games
~/workspace/pset3/ (master) $ ./fifteen 4
15 14 13 12
11 10 9 8
7 6 5 4
3 1 2 _
Tile to move:
whodunit.c : a program that intelligently analyze an image (clue.bmp) and turn it to a better image (verdict.bmp)
~/workspace/pset4/ (master) $ ./whodunit clue.bmp verdict.bmp
Before running whodunit.c
After running whodunit.c
resize.c : a program that can enlarge an image to n size
~/workspace/pset4/ (master) $ ./resize 4 small.bmp large.bmp
Before and after running resize.c
recover.c : a program that recovers .jpeg images from card.raw
~/workspace/pset4/ (master) $ ./recover
~/workspace/pset5/ (master) $ ./speller dictionaries/large endi.txt
MISSPELLED WORDS
nme
veri
persan
yo
bro
USConstitution
http
usconstitution
const
html
WORDS MISSPELLED: 10
WORDS IN DICTIONARY: 143091
WORDS IN TEXT: 722
TIME IN load: 0.10
TIME IN check: 0.00
TIME IN size: 0.00
TIME IN unload: 0.06
TIME IN TOTAL: 0.16
Requirements & Dependencies:
cd ~/workspace/pset6/sentiments/
pip3 install --user -r requirements.txt
Convert some of week 1 & 2 .c programs to .py
~/workspace/pset6/ (master) $ python mario.py
Height: 5
##
###
####
#####
######
~/workspace/pset6/ (master) $ python greedy.py
O hai! How much change is owed?
0.41
4
~/workspace/pset6/ (master) $ python caesar.py 13
HELLO
URYYB
~/workspace/pset6/ (master) $ python vigenere.py bacon
Meet me at the park at eleven am
Negh zf av huf pcfx bt gzrwep oz
Sentiments
smile.py : a program that categorizes a word as positive or negative
tweets.py categorizes a user’s recent 100 tweets as positive or negative (uses Twitter API)
Implement a website that generates a pie chart categorizing a user’s tweets
Usage:
~/workspace/pset6/sentiments/ (master) $ export API_KEY= <insert your API_KEY from Twitter here>
~/workspace/pset6/sentiments/ (master) $ export API_SECRET= <insert your API_SECRET from Twitter here>
~/workspace/pset6/sentiments/ (master) $ export FLASK_APP=application.py
~/workspace/pset6/sentiments/ (master) $ export FLASK_DEBUG=1
~/workspace/pset6/sentiments/ (master) $ flask run
C$50 Finance Implement a website via which users can "buy" and "sell" stocks, a la the below.
Requirements & Dependencies:
cd ~/workspace/pset7/finance/
pip3 install --user -r requirements.txt
Usage:
~/workspace/pset7/finance/ (master) $ flask run
~/workspace/pset7/finance/ (master) $ phpliteadmin finance.db
Implement a website that lets users search for articles atop a map (using Google's API)
Requirements & Dependencies:
cd ~/workspace/pse8/mashup/
pip3 install --user -r requirements.txt
Usage:
~/workspace/pset8/mashup/ (master) $ export API_KEY=<API_KEY from Google Maps API>
~/workspace/pset8/mashup/ (master) $ flask run
~/workspace/pset8/mashup/ (master) $ phpliteadmin mashup.db
In progress