Skip to content

Instantly share code, notes, and snippets.

View thebinarypenguin's full-sized avatar

Ethan Zimmerman thebinarypenguin

View GitHub Profile
@thebinarypenguin
thebinarypenguin / gist:e05c57a7f030ce3de7055ac4d22c40be
Created January 22, 2019 13:59
Thinkful Assignment: Job visualization
In no particular order:
Commute: I don't like commuting. I want my commute to be a short as possible.
Dress: I like khaki's with a polo. I don't want to have to wear a button down
every day. I'm cool with jeans and a t-shirt as well.
Hour: I don't care too much as long as it's regular. I don't want to be
on-call.
@thebinarypenguin
thebinarypenguin / gist:91baf4c95e12d8b503692279b432ad94
Created January 20, 2019 02:11
Thinkful Assignment: Shopping List Pseudocode
Assignment: Provide pseudo code for the following user stories.
1. You should be able to add items to the list
The UI will have a form with an "item name" text input and an "add item"
submit button.
When the form is submitted, catch the event and call an "add item function"
followed by a "render shopping list" function
@thebinarypenguin
thebinarypenguin / gist:8be5e9f64a9272557f676193a46a5a39
Created January 20, 2019 01:38
Thinkful Assignment: jQuery Questions
This assignment is to list questions I have about jQuery. However I don't have
any questions, so I will explain what jQuery is.
jQuery has 2 main features
1. Makes DOM manipulation easier
2. Makes AJAX requests easier
DOM manipulation can be done with vanilla javascript but it's much more
difficult. When jQuery was created web browsers were much more inconsistent
than they are now. In order to get some DOM manipulation code to work you often
https://repl.it/@thebinarypengui/Cat-carousel-jQuery
https://repl.it/@thebinarypengui/return-of-fizz-buzz
What do you already know about your communication style and skills?
I consider myself a good verbal communicator, but writing is not my strongest
suit.
What did you learn while reading this?
I learned about the Amygdala Hijack and how the emotional part of your brain
gets "first dibs" on incoming stimuli.
getTokens
1. convert string to lower case
2. split string into array (of words) along word boundaries
3. remove any empty strings
4. sort the array of words alphabetically
mostFrequentWord
1. call getTokens to convert text into an array of sorted words
2. loop over the words array, building up a frequency distribution object
3. loop over the frequency distribution object, looking for the word with the highest frequency
https://repl.it/@thebinarypengui/Make-student-reports-drill
https://repl.it/@thebinarypengui/Enroll-in-summer-school-drill
https://repl.it/@thebinarypengui/find-by-id-drill
https://repl.it/@thebinarypengui/validate-object-keys-drill
https://repl.it/@thebinarypengui/Object-creator-drill
https://repl.it/@thebinarypengui/Object-updater-drill
https://repl.it/@thebinarypengui/Self-reference-drill
https://repl.it/@thebinarypengui/Deleting-keys-drill
What is scope? Your explanation should include the idea of global vs. local scope.
Scope is the area in which a variable is accessible. Variables declared at
the top level of an application have global scope and are accessible by all
code. While variables declared inside a function have local scope and are only
accessible by the code in that function.
Why are global variables avoided?
A global variable is essentially a variable that is shared among all the code
https://repl.it/@thebinarypengui/min-and-max-without-sort-drill
https://repl.it/@thebinarypengui/average-drill
https://repl.it/@thebinarypengui/fizzbuzz-drill-js