Skip to content

Instantly share code, notes, and snippets.

View michaelablackham's full-sized avatar

Michaela (Blackham) Lederman michaelablackham

View GitHub Profile
//Get all
db.restaurants.find()
//Limit and sort
db.restaurants.
find().
sort({name: 1}).
limit(10);
//Get by _id
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
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
@michaelablackham
michaelablackham / userflow and wireframes
Created July 3, 2017 13:13
for sunsetwx api capstone
https://michaelablackham.github.io/thinkful-sunset/resources/user-flow.jpg
https://michaelablackham.github.io/thinkful-sunset/resources/wireframe.jpg
<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>
https://github.com/michaelablackham/thinkful-text-analyzer
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.
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
@michaelablackham
michaelablackham / Challenge: analyze a most frequent word program
Created April 26, 2017 04:04
Challenge: analyze a most frequent word program
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) {
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