This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get all | |
db.restaurants.find() | |
//Limit and sort | |
db.restaurants. | |
find(). | |
sort({name: 1}). | |
limit(10); | |
//Get by _id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Echo endpoint: glitch.com/edit/#!/worried-frown | |
Mad lib generator: https://glitch.com/edit/#!/aboard-howler - would like some help with this one. | |
A/B test: https://glitch.com/edit/#!/scratch-pelican | |
I would like to maybe do some more examples of these in our next session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Photographer friends have been loving this | |
-- Not 100% accurate, but definitely has been great 8/10 times. So not bad! | |
2. Have ability to change location or sun even after getting current results | |
-- Should add this to the results page somehow | |
3. Have ability to use current location instead of typing in city state | |
-- add a geolocation button and have the coordinates change from lat long --> city state | |
4. Have ability to have a dropdown or type ahead so the city state is correct | |
-- Maybe find some plugin or something that can detect | |
5. Annoying that this only works for lower 48 right now | |
-- This is baed on the actual API. I would love for this to be fixed in the future and add it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://michaelablackham.github.io/thinkful-sunset/resources/user-flow.jpg | |
https://michaelablackham.github.io/thinkful-sunset/resources/wireframe.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>I want to help users end their day on a good note, with a beautiful sky with the sunset predictor <a href="https://sunburst.sunsetwx.com/v1/docs/#introduction">API</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/michaelablackham/thinkful-text-analyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/michaelablackham/thinkful-event-listener-drills | |
I just added y git repo because this was much much much easier for me at this point. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/walejod/edit?js,console | |
https://jsbin.com/deworib/3/edit?js,console | |
https://jsbin.com/qijepap/1/edit?js,console -- no idea what I was supposed to be finding for this one. need help talking this one out. | |
https://jsbin.com/borecug/edit?js,console -- even when running this one which i copied and pasted from the solution i still get an error | |
github: https://github.com/michaelablackham/thinkful-object-drills-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTokens(rawString) { | |
// NB: `.filter(Boolean)` removes any falsy items from an array | |
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort(); | |
/*returns a raw string, converts to lower case, splots the words/letters | |
by the user of spaces, commas, exclamation points, periods quotes, | |
semicolons, colons, hyphens and sort them in alphabetical order after | |
finding out if it is true or not*/ | |
} | |
function mostFrequentWord(text) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsbin.com/qaloxo/1/edit?js,console | |
https://jsbin.com/kokidav/edit?js,console | |
https://jsbin.com/fiwevut/1/edit?html,js,output | |
https://jsbin.com/dejiyo/1/edit?js,console |