This file was added
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
###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 |
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 sayhello(){ | |
printf("Hello World"); | |
} | |
int main(){ | |
int num; | |
char* number; | |
do{ | |
printf("\njust say some number: "); |
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
### 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 |
import React from 'react';
const FirebaseContext = React.createContext(null);
export const withFirebase = Component => props => (
<FirebaseContext.Consumer>
{firebase => <Component {...props} firebase={firebase} />}
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
private fun getResCards() { | |
val urlAllResCards = "http://13.235.250.119/v2/restaurants/fetch_result/" | |
val queue = Volley.newRequestQueue(activity as Context) | |
val allResCardsReq = object : JsonObjectRequest(Method.GET, urlAllResCards, null, | |
Response.Listener { | |
val response = it.getJSONObject("data") | |
if (response.getString("success") == "true") { | |
val data = response.getJSONArray("data") | |
for (i in 0 until data.length()) { |
- Open this link in a new tab on your device [bit.ly/pc-eng-cal][pc] (use a PC if possible)
- Check if you are in your MCC account. If yes: step 5.
- Click on Cancel
OlderNewer