Skip to content

Instantly share code, notes, and snippets.

View kevinnls's full-sized avatar
🥱
procras-coding

Kevin Samuel kevinnls

🥱
procras-coding
View GitHub Profile
### BASH script to download the entire CS50 course material + project instructions
###DEFINE ALL OF THESE VARIABLES
root="http://cdn.cs50.net/mobile/2018/spring" #remove the final / in the link
quality=720p #imporant to retain the `p`
lec_count=12 #check in root on your browser
proj_count=2 #check in root on your browser
#UNCOMMENT THE NEXT LINE DOWNLOAD PROJECT INSTRUCTIONS
#include<stdio.h>
void sayhello(){
printf("Hello World");
}
int main(){
int num;
char* number;
do{
printf("\njust say some number: ");
###GLOBAL SECTION###
current_year = 2020
###FUNCTION DEF###
def age_finder(parameter): #get the parameter from function call (ln.16) and save in *parameter*
dob = parameter.split("/")
yob = int(dob[2])
result = current_year - yob #calculate result
return result #return *result* to funciton call (ln.14)
####MAIN###
name = "Epoch" #create var called name
@kevinnls
kevinnls / added_file.md
Last active April 25, 2020 09:15
experimenting with string formatting in Python

I added this file

This file was added