Skip to content

Instantly share code, notes, and snippets.

View DikshaSach's full-sized avatar

Diksha Sach DikshaSach

View GitHub Profile
@DikshaSach
DikshaSach / index.css
Created May 29, 2018 00:26
Space_Quiz_App_Final created by sachdiksha - https://repl.it/@sachdiksha/SpaceQuizAppFinal
body {
background: url(https://wallpapertag.com/wallpaper/full/9/4/d/155135-space-stars-background-1920x1080-smartphone.jpg);
background-size: 100% 100vh;
z-index: -1;
margin: 0;
padding: 0;
}
Even or odd:- Constant Run time Complexity O(1)
Are you here?:- Nested Loop so Polynomial time Complexity O(n^2)
Doubler- Linear because values get doubled O(n)
Naive Search- Linear because if array gets doubled the algorithm will take double the amount of time to get a solution.
The time it takes for the algorithm to complete is dependent on the array and not item so the array can get doubled, tripled
quadrupled in length but the time will be a linear upward slope. O(n)
Creating pairs:- Polynomial time complexity O(n^2) Has two for loops.
Computing fibonaccis:- Linear time taken will depend solely on the number parameter. O(n)
An Efficient Search:- Logorthmic Time Complexity O(logn) Time complexity is dependent on array length.
Random element:- Const Run Time Complexity O(1)
As a user i should be able to sign up
As a user once i have signed in i should be prompted to add my daily exercise routine for each day of the week.
As a user once i have submitted the form i should from then on see a calendar with "Leg Day, Back Day, whatever day" for each day of the week that i have filled information for.
As a user i should be able to click on an individual date and change my routine of that particular day (change weight lifted, change how many reps/sets)
As a user i should be able to input my BMI and weight.
As a user i should be able to compare my weight and BMI from month to month.
As a user i should be able to track what kind of supplements (i.e. protein, pills) i have taken for that month.
As a user i should be able to track my water intake for each day.
As a user i should be able to add multiple workouts for each day.
As a user i should be able to see my calories burned for the week/month.
Help keep track of your daily workout routines after the gym to help track your progress and gains.
https://glitch.com/edit/#!/lopsided-plot
https://glitch.com/edit/#!/mirage-root
https://glitch.com/edit/#!/abaft-ringer
https://glitch.com/edit/#!/mud-dimple
https://glitch.com/edit/#!/bead-fan
https://glitch.com/edit/#!/thinkable-trip
https://glitch.com/edit/#!/kindly-sweater
Navigation
https://glitch.com/edit/#!/bloom-llama
Address Book
https://glitch.com/edit/#!/pine-perch
App Idea~
-- An app where a user can login and save details of perspective housing (apartments, houses) etc. in one place with pictures, details about the particular house etc.
User Stories
- As a user, I should be able to sign up and login for my app.
- As a user i should be able to create a new perspective housing page (list item).
- As a user i should be able to upload pictures of the house/apt.
- As a user i should be able to list features of the house.
- As a user i should be able to get a map of the location of the perspective house.
- As a user i should be able to rate the perspective house.
1. Get all
> db.restaurants.find()
2. Limit and sort
> db.restaurants.find().limit(10).sort({name: 1})
3. Get by _id
> var foundOne = db.restaurants.findOne();
> db.restaurants.findOne(foundOne)