Skip to content

Instantly share code, notes, and snippets.

View ecarlson1201's full-sized avatar

Eric Carlson ecarlson1201

View GitHub Profile
Gift List
https://github.com/ecarlson1201/gift-list-client
@ecarlson1201
ecarlson1201 / IMG_1048.jpg
Last active November 28, 2018 06:51
node-capstone-wireframe-user-stories
IMG_1048.jpg
Get All
db.restaurants.find()
Limit and Sort
db.restaurants.find().sort({name: 1}).limit(10)
Get by Value
db.restaurants.find({borough: "Queens"})
Count
@ecarlson1201
ecarlson1201 / gist:f3afd2bf6ef6e64b8b98ddb187bed64a
Created November 5, 2018 08:22
gatekeeper middleware challenge
https://glitch.com/edit/#!/weak-capybara?path=server.js:47:0
https://glitch.com/edit/#!/same-forgery?path=server.js:10:3
https://glitch.com/edit/#!/quark-limit?path=server.js:34:0
@ecarlson1201
ecarlson1201 / IMG_1022.jpg
Created October 7, 2018 21:04
API wireframes
IMG_1022.jpg
@ecarlson1201
ecarlson1201 / gist:edc2ab79c27e212666e6a3bf95a7e959
Last active October 7, 2018 20:18
API Capstone Description
Help users with coding by providing basic information, how-to videos, links to discussion forums, and exercises about a searched topic.
@ecarlson1201
ecarlson1201 / Shopping List app
Created September 2, 2018 12:26
Shopping list app
https://repl.it/@EricCarlson1/Shopping-list-app-jQuery-1
@ecarlson1201
ecarlson1201 / Cat Carousel
Created September 1, 2018 22:06
Event Listener Drills
@ecarlson1201
ecarlson1201 / Analysis
Created August 30, 2018 08:19
Analyze most frequent word program
/* After removing any falsey items from the raw text using the getTokens function, we are left with one clean
lower case string containing only words seperated by spaces. The mostFrequentWord function takes that string
and assigns it to a variable, words. The function then iterates through each word and if it encounters a new
word it adds one to a new key in an object, wordFrequencies. If it has already encountered the word, it adds
one to the key at which it first encountered the word.
Afterwards, it sets a variable, currentMaxKey, to the first word in the wordFrequencies object and another
variable, currentMaxCount, to whatever index of the currentMaxKey in the wordFrequencies object.
Next the function iterates over every property in the wordFrequencies object. It then runs an if statement