Skip to content

Instantly share code, notes, and snippets.

View tian-chaiyaporn's full-sized avatar

Chaiyaporn Chinotaikul tian-chaiyaporn

View GitHub Profile
@tian-chaiyaporn
tian-chaiyaporn / gist:be4df26a81cfc417276f1dc0715338d3
Created September 3, 2017 05:21
thinkful - redux thunk drill
https://glitch.com/edit/#!/dot-family?path=src/actions.js:1:0
https://glitch.com/edit/#!/walnut-doll?path=src/components/email.js:5:40
@tian-chaiyaporn
tian-chaiyaporn / gist:c35c42cf7542a9fe6c5719f45d87f461
Created August 29, 2017 06:41
react unit2 redux - drill lesson1.4
https://glitch.com/edit/#!/flowery-ice?path=src/components/interest-calculator.js:43:74
https://glitch.com/edit/#!/actually-pantry?path=src/components/interest-calculator.js:22:105
@tian-chaiyaporn
tian-chaiyaporn / gist:8f2ade9279531a8c8b442c6f7b1626ef
Created August 28, 2017 17:13
react unit2 redux - drill lesson1
https://glitch.com/edit/#!/quill-smell?path=src/reducers/index.js:14:15
https://glitch.com/edit/#!/confused-creator?path=src/reducers/index.js:19:43
https://glitch.com/edit/#!/substantial-chill
https://glitch.com/edit/#!/shrouded-guilty
https://glitch.com/edit/#!/rogue-aftermath?path=src/components/live-search.js:37:0
@tian-chaiyaporn
tian-chaiyaporn / gist:72b6893d1b3881083f4dd887620640fa
Last active August 23, 2017 17:39
Thinkful - react-001v3/project/1.1.5
https://glitch.com/edit/#!/deep-pest
https://glitch.com/edit/#!/metal-brick
@tian-chaiyaporn
tian-chaiyaporn / gist:9706ec5fa846323c4d7f707d1d199ac3
Created August 23, 2017 07:08
Feedback on capstone dice app
1. better design
2. add features to save other people dice
3. make it available on mobile for easy access
Scope:
As a user, I should be able to create a dice with as many faces as I want without having to register.
As a user, I should be able to store my dice to an account (I need to register for this option)
As a user, I should be able to register / log in / log out of my account
As a user, I should be able to share my dice with others to use or set it as private only
Screens + User flow:
Home screen with short explaination + list of dice that user can click to + option to create new dice
Dice screen where user can toss the dice / edit the dice if it belongs to the user
Create dice screen where user can add new options to create a dice. New dice can have suggestions on ideas.
Help people decide on everyday decisions using a dice to randomly generate results.
As a user, I should be able to create a dice with as many faces as I want
As a user, I should be able to store my dice to an account
As a user, I should be able to register / log in / log out of my account
As a user, I should be able to share my dice with others to use or set it as private only
get all: db.restaurants.find()
limit and sort: db.restaurants.find().sort({name: 1}).limit(10)
get by _id:
var docId = db.restaurants.findOne({})._id;
then db.restaurants.find({_id: docId})
get by value:
db.restaurants.find({borough: "Queens"})