Skip to content

Instantly share code, notes, and snippets.

View Schmerb's full-sized avatar

Michael Schmerbeck Schmerb

View GitHub Profile
@Schmerb
Schmerb / logic-drills
Created May 22, 2017 21:56
Lesson 3 Logic
traffic lights
https://repl.it/Ggbk/100
errors
https://repl.it/Ggcp/124
@Schmerb
Schmerb / number-drills
Created May 22, 2017 18:52
Lesson2 Number Drills
Area
https://repl.it/G9Do/44
Temp
https://repl.it/G9EI/59
Divisible
https://repl.it/G9Ec/55
@Schmerb
Schmerb / String-drills
Created May 22, 2017 18:44
Lesson-2 String drills
Wiseperson
https://repl.it/G8oY/113
Shouter
https://repl.it/G8sD/94
normalizer
https://repl.it/G8sU/54
@Schmerb
Schmerb / PrepcourseCapstone.txt
Last active May 9, 2017 23:27
Capstone Project - High Level Definition
A search engine to quickly and easily find where a specific movie or tv show can be streamed / viewed
and relevant information on those available sources, using the Guidebox API.
https://api.guidebox.com/docs
cat carousel
https://jsbin.com/fegaku/10/edit?html,css,js,console,output
FizzBuzz
https://jsbin.com/hacudut/22/edit?html,js,console,output
Bulb-on
https://jsbin.com/busoja/3/edit?html,css,js,output
Overall functionality:
mostFrequentWord(string) --> @return: returns the word that appears the most in a given string;
First, function calls a getTokens(text) method on some string 'text'.
This getTokens method returns an array of the words found in the string passed as an argument transofrming all
characters to lower case, using any numbers of white space, commas, exclamation points, periods, quotation marks,
semi-colons, colons, or dashes in any frequency as the delimiter to determine where each word begins/ends, removes falsy
items and sorts the words alphabetically.
--> tl:dr strips just the words consisting of letters A-Za-z9-0 into an array
student reports
https://jsbin.com/mawanow/3/edit?html,js,console
summer school
https://jsbin.com/tulurig/2/edit?html,js,console
find by id
https://jsbin.com/wekibi/3/edit?html,js,console
validate object keys
obj creator
https://jsbin.com/gonani/2/edit?html,js,console
update obj
https://jsbin.com/duzoham/2/edit?html,js,console
self-reference
https://jsbin.com/lucifoq/3/edit?html,js,console
delete
@Schmerb
Schmerb / lesson-5-challenge
Created April 23, 2017 01:12
Brief rundown of scope in JavaScript.
What is scope?
Scope refers to the part of your program / source code that a given variable can 'see'. In other words,
scope defines which variables (and specific values) functions or variables both within and outside of
functions have access to. There are two distinct types of scope, global (also known as 'window' scope)
and local scope.
The global scope consists of the entire source file and can even stretch across multiple
files given those files are loaded properly into an html file. Global variables are accessible from anywhere
within the file(s) including inside of functions or nested-functions. The local scope refers to variables
that have been declared inside of a function (nested-function) and thus only those variables can be accessed
by other variables or functions within the same part of the code. Thus, a variable defined locally inside of one
max/min without sort
https://jsbin.com/rojudog/3/edit?html,js,console
compute ave
https://jsbin.com/ricezuy/3/edit?html,js,console
FizzBuzz
https://jsbin.com/jukehiq/3/edit?html,js,console