Skip to content

Instantly share code, notes, and snippets.

View zekewell's full-sized avatar

Maxwell W. zekewell

View GitHub Profile
@zekewell
zekewell / keybase.md.
Last active April 9, 2019 22:19
Keybase
### Keybase proof
I hereby claim:
* I am zekewell on github.
* I am zekewell (https://keybase.io/zekewell) on keybase.
* I have a public key ASDCfu45gTGVdfzO57I6NDrwHbYLDEs2JNRI8EuTBRhPygo
To claim this, I am signing this object:
@zekewell
zekewell / jsbin.halezo.js
Created September 26, 2015 20:44 — forked from anonymous/index.html
FunctionsFunctions: programs within programs// source http://jsbin.com/halezo
/*
The two phases to using functions: First we must ___? Next we can execute (or two other words for executing a function?) a function by?
What’s the difference between a function’s parameters and arguments PASSED to a function?
What’s the syntax for a NAMED function?
How do we assign a function to a variable?
Functions can OPTIONALLY take inputs and OPTIONALLY return a single value, how do we specify inputs, and how do we return a value?
NOTE: Primitive (simple) values are passed to a function BY COPY, complex by reference. Try it!
Scope: Functions can see and modify variables in parent or global scopes. The inverse is NOT true.
Closures: Functions form closures around the data they house. If an object returned from the Function and is held in memory somewhere (referenced), that closure stays ALIVE, and data can continue to exist in these closures! (See: our meeting-room app for an example!) (ALSO, see: Understanding JavaScript Closures with Ease)
*/
@zekewell
zekewell / jsbin.curize.js
Last active September 26, 2015 20:42 — forked from anonymous/index.html
Loops: while, for, for-inLoops: while, for, for-in// source http://jsbin.com/curize
/*
Be able to loop any number of times, forward counting up to some limit, backward counting down to 0
Loop over an Array, forwards and backwards
Loop over an Object, forwards and backwards ( hint: keys = Object.keys(myObject); )
*/
@zekewell
zekewell / jsbin.taxeju.js
Created September 26, 2015 20:23 — forked from anonymous/index.html
Control flow: if, else-if, elseControl Flow// source http://jsbin.com/taxeju
/*
Do you need to branch code? In need of a decision tree
*/
@zekewell
zekewell / jsbin.hujoru.js
Created September 26, 2015 20:21 — forked from anonymous/index.html
String ManipulationString Manipulation// source http://jsbin.com/hujoru
/*
String Manipulation is how you find characters, words, and do anything else you might want from lots of text.
*/
@zekewell
zekewell / jsbin.cakuni.js
Created September 26, 2015 20:19 — forked from anonymous/index.html
OperatorsOperators// source http://jsbin.com/cakuni
/*
Operators:
Assignment
Arithmetic
Comparison
Logical
Binary (!, typeOf, -)
Turnary (a ? b : c)
@zekewell
zekewell / jsbin.rihuza.js
Created September 26, 2015 20:18 — forked from anonymous/index.html
Datatypes : Simple + ComplexDatatypes : Simple + Complex// source http://jsbin.com/rihuza
/*
Datatypes can be both simple & complex.
Take a simple journey through them!
*/
// Numbers
// String
@zekewell
zekewell / jsbin.qicites.js
Last active September 26, 2015 20:51 — forked from anonymous/index.html
HW W1D4 - VariablesHW W1D4// source http://jsbin.com/qicites
/*
* VARIABLES:
*
* 0. To hold things in memory during the life-cycle of a program, we can use variables. Variables
* are named identifiers that can point to values of a particular type, like a Number, String,
* Boolean, Array, Object or another data-type. Variables are called so because once created, we
* can CHANGE the value (and type of value) to which they point.
*
* 1. To create a variable we use the keyword, var, followed by a name (id or alias) for our
* variable.