Mass Effect
BioShock
Black Ops
Modern Warfare
Starcraft
Mass Effect
BioShock
Black Ops
Modern Warfare
Starcraft
.mtki { | |
font-family: 'flottflott'; | |
font-style: normal; | |
font-weight: 400; | |
font-size: 1.6em; | |
} | |
.send-feedback.mask-icon { | |
display: none; | |
} |
.fix-nav { | |
// the container for static image and gif | |
.gif-container { | |
// the play icon | |
.fa-play { | |
color: #333; | |
font-size: 2.3rem; | |
position: absolute; | |
top: calc(50% - 2.5rem); | |
left: calc(50% - 2.5rem); |
for f in *.gif; do | |
convert $f'[0]' $f'.png' | |
done |
const express = require('express'); | |
const cors = require('cors'); | |
const bodyParser = require('body-parser'); | |
const morgan = require('morgan'); | |
const jwt = require('express-jwt'); | |
const jwksRsa = require('jwks-rsa'); | |
const Appbase = require('appbase-js'); | |
// middlewares | |
const app = express(); |
import CONFIG from './../constants/Config'; | |
const getHeaders = (accessToken) => ({ | |
'Content-Type': 'application/json', | |
'Authorization': `Bearer ${accessToken}` | |
}); | |
const logger = message => console.log(message); | |
class TodoModel { |
class TodoItem extends Component { | |
onTodoItemToggle = (todo, propAction) => { | |
propAction({ | |
...todo, | |
completed: !todo.completed, | |
}, this.props.screenProps); // pass screenProps here | |
}; | |
render() { | |
const { todo, onUpdate, onDelete } = this.props; |
... | |
// create auth0 service first here | |
import Auth0 from 'react-native-auth0'; | |
const auth0 = new Auth0({ domain: 'divyanshu.auth0.com', clientId: '6ZR8Jgj6Gzy1onJhrO0egEbfudIBVZNP' }); | |
... | |
export default class TodosContainer extends React.Component { | |
... |
... | |
// create auth0 service here | |
import Auth0 from 'react-native-auth0'; | |
const auth0 = new Auth0({ domain: 'divyanshu.auth0.com', clientId: '6ZR8Jgj6Gzy1onJhrO0egEbfudIBVZNP' }); | |
... | |
export default class RootComponent extends React.Component { | |
state = { | |
accessToken: null, |
class Utils { | |
static mergeTodos(todos, streamData) { | |
// generate an array of ids of streamData | |
const streamDataIds = streamData.map(todo => todo._id); | |
return ( | |
todos | |
// consider streamData as the source of truth | |
// first take existing todos which are not present in stream data | |
.filter(({ _id }) => !streamDataIds.includes(_id)) |