Skip to content

Instantly share code, notes, and snippets.

View ms-vague's full-sized avatar

Maria Vatranis ms-vague

  • New Orleans
View GitHub Profile
Gist
Safe Bathrooms App
Find a safe restroom for LGBTQIA+ individuals in New Orleans.
As a user...
I should be able to rate/leave a review for the establishment.
I should be able to be anonymous.
I should be able to search using a zip code.
I should be able to see a short description of the establishment to determine if I want to use the restroom there.
// get all
db.restaurants.find();
// limit and sort
db.restaurants.
find().
sort({name: 1}).
limit(10);
// Echo endpoint //
https://glitch.com/edit/#!/rune-cut?path=server.js:13:36
// This what I had before my thirty minutes were up:
const express = require('express');
const app = express();
// your code here!
app.get('/echo/:what', (req, res) => res.json({'host': , 'query':, 'params':, });
// I screwed up some of the syntax before res.json. Also was trying to hardcode an actual object for the res.json. //
@ms-vague
ms-vague / API Hack Again
Created February 20, 2017 22:32
capstonepartdeux
Robert,
I have to change what I wanted to do for my API Hack Front-end Capstone.
Originally I wanted to use the Vimeo Web API and the Open Trivia Database API.
After going to an open capstone Q&A with Kristen, we realized I wouldn't be able to use the Vimeo API. It uses OAuth, which is
a little advanced for what I can do with my Front-end Capstone. Therefore, I'm presenting another idea.
I want to use the Google Fonts API. I'm going to take the data and have it preview on the fly using some type of sorting method.
The user will be able to fontpair and try it out on the app/site live in the browser using jQuery.
@ms-vague
ms-vague / userflow
Created February 5, 2017 18:31
Capstone User Flow
USER FLOW
introduce website concept - home screen - {facebook and twitter links}
|
user clicks button
|
random movie appears (w/ description)
|
user clicks until satisfied w/ choice
@ms-vague
ms-vague / capstone
Last active February 7, 2017 23:46
API Hack Capstone
I want to do something that incorporates my interest in pop culture.
I love movies. Preferably bad movies.
So, for my capstone I want to share my love of bad movies. I was thinking of making a random bad movie generator.
I will use the Vimeo API that will filter only B grade movies:
https://vimeo.com/tag:b+movie
It will also filter by user ‘likes’:
The more likes it has, a better quality bad movie.
https://vimeo.com/tag:b+movie/sort:likes
@ms-vague
ms-vague / eventlistdrills
Last active January 7, 2017 22:56
Event Listener Drills
// lightbulb toggle //
https://jsbin.com/wagafa/1/edit?html,js,output
@ms-vague
ms-vague / advobjectsdrills
Last active December 29, 2016 05:01
Advanced Objects Drills
// frequent word //
https://jsbin.com/mahije/2/edit?js,console
// data merge //
https://jsbin.com/mapiqoy/edit?js,console
(Why do the first and second key start with underscores? 'results[key][_key] = otherData[_key];')
// receipe factory //
https://jsbin.com/nekuhu/1/edit?js,output
@ms-vague
ms-vague / objectbasicdrills
Created December 28, 2016 00:31
Object Basic Drills
https://jsbin.com/tilive/2/edit?js,console
https://jsbin.com/foveho/2/edit?js,console
https://jsbin.com/xegowal/2/edit?js,console
https://jsbin.com/kibexoh/2/edit?js,console