Skip to content

Instantly share code, notes, and snippets.

@kopasetik
Last active April 21, 2016 18:33
Show Gist options
  • Save kopasetik/e7bff01636898c049dbe5aa4943bae5d to your computer and use it in GitHub Desktop.
Save kopasetik/e7bff01636898c049dbe5aa4943bae5d to your computer and use it in GitHub Desktop.
PT 3 - April 2016 Sample Teach pt 3 (notes)
function getCube (n){
var result = n;
result *= n * n;
return result;
}
function getFahrenheit (celsius){
var result = celsius;
result *= 9;
result /= 5;
result += 32;
return result;
}

Recipe: Fahrenheit Temperature
Ingredients:
-1 Celsius Temperature

Steps:
-Take the Celsius Temperature and multiply it by 9

-Divide the result of the previous step by 5

-Add 32 to the result of the preceding step

-The result of the preceding step is the final result

Final Result:
1 Fahrenheit Temperature

Recipe: Peanut Butter & Jelly Sandwich Ingredients:
-Peanut Butter (1 svg) aka PB
-Grape Jelly (1 svg) aka JELLY
-Bread (2 slices)

  1. aka 1ST SLICE
  2. aka 2ND SLICE

Steps:
-Spread PB on 1ST SLICE
-Spread JELLY on 2ND SLICE
-Join 1ST SLICE and 2ND SLICE together with PB & JELLY in between slices
-You now have a complete Peanut Butter & Jelly Sandwich

Final Result:
1 Peanut Butter and Jelly sandwich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment