Open zoro9483 opened 3 years ago
{ 123456: { 'messages': [
],
'age': 2,
'match_id': '123456789123456789',
'name': 'Joy',
'photos': [
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg'
],
'message_count': 0,
'last_activity_date': '15 days, 16 hrs 46 min 57 sec',
'ping_time': '2017-03-11T04:58:56.433Z',
'gender': male / famle,
'bio': 'available for adoption',
'avg_successRate': 0
},
56789: {
...
}
}
Sorting: Sorting matches by "age", "message_count", and "gender" [ ('123456789123456789', { 'messages': [
],
'age': 19,
'match_id': '123456789123456789abcdefghi',
'name': 'Carmelo',
'photos': [
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg',
'http://images.gotinder.com/123456789123456789.jpg'
],
'message_count': 0,
'last_activity_date': '0 days, 22 hrs 23 min 45 sec',
'ping_time': '2017-03-25T23:22:08.954Z',
'gender': 1,
'bio': 'I do not like to win sometimes', 'avg_successRate': 0.7837966008217391
}
)
]
repo for tinder API https://github.com/fbessez/Tinder
Facebook Friends: Given a name, it returns some profile information and their id. Once you have the ID, then you can call api.get_person(id) to get more in-depth information on your friends. { 'Martin Shkreli': { 'photo': [ { 'processedFiles': [ { 'url': 'https://graph.facebook.com/123456789/picture?height=84&width=84', 'height': 84, 'width': 84 }, { 'url': 'https://graph.facebook.com/123456789/picture?height=172&width=172', 'height': 172, 'width': 172 }, { 'url': 'https://graph.facebook.com/123456789/picture?height=320&width=320', 'height': 320, 'width': 320 }, { 'url': 'https://graph.facebook.com/123456789/picture?height=640&width=640', 'height': 640, 'width': 640 } ] } ], 'in_squad': True, 'name': 'Martin Shkreli', 'user_id': '582bf320452u3yy1217f8' } }
react-swipe-card Tinder style swipe cards
npm
Usage Demo Code Components License Usage Install
$ npm install react-swipe-card -save Demo Demo
Code import Cards, { Card } from 'react-swipe-card'
const data = ['Alexandre', 'Thomas', 'Lucien']
const Wrapper = () => { return ( <Cards onEnd={action('end')} className='master-root'> {data.map(item => <Card onSwipeLeft={action('swipe left')} onSwipeRight={action('swipe right')}>
</Card>
)}
</Cards>
) } Components Cards Props:
className: string onEnd: function alertRight: component alertLeft: component alertTop: component alertBottom: component Card Props:
onSwipeLeft: function onSwipeRight: function onSwipeTop: function onSwipeBottom: function
Data: dbmeinv-firebase-api firebase server JS: vue vuex UI: bulma SERVER: now.sh Other Excellent library
php for tinder
Tinder-cats routes GET /cats -> list all cats GET /cats/:id -> cat detail
GET /cats/create -> show the form for create a cat POST /cats -> create the cat
POST /cats/:id/delete -> delete the cat with that id
GET /cats/:id/edit -> show the form to edit POST /cats/:id -> Cat.findByIdAndUpdate(id, { update }) (Pseudo)
GET /signup -> show signup form POST /signup -> create user
const id = req.params.id === const { id } = req.params
const catToEdit = { name: 'asd' } res.render('path', { catToEdit }) === res.render('path', { catToEdit: catToEdit }) // vista catToEdit.name === this.catToEdit.name
Match_Info: Creates a local dictionary containing the following keys on each of your matches { 123456: { 'messages': [
}