This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Router} from 'express'; | |
import {wrap} from '../../utils'; | |
const router = Router(); | |
async function getAllChampagnes(req, res) { | |
const champagnes = await req.db.models.Champagne | |
.find() | |
.exec(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some predefined animations for you usage | |
export const animations = { | |
layout: { | |
spring: { | |
duration: 500, | |
create: { | |
duration: 300, | |
type: LayoutAnimation.Types.easeInEaseOut, | |
property: LayoutAnimation.Properties.opacity | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PureComponent from 'react-pure-render/mixin'; | |
import React from 'react-native'; | |
import { | |
View, | |
Text | |
} from 'react-native'; | |
import TrackKeyboard from '../components/trackKeyboard.react'; | |
import LoginForm from '../auth/loginForm.react'; | |
import style from './register.style.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PureComponent from 'react-pure-render/mixin'; | |
import React from 'react-native'; | |
import { | |
View, | |
Text | |
} from 'react-native'; | |
import TrackKeyboard from '../components/trackKeyboard.react'; | |
const CreateOrder = React.createClass({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import KeyboardEvents from 'react-native-keyboardevents'; | |
import { | |
Emitter as KeyboardEventEmitter | |
} from 'react-native-keyboardevents'; | |
export default { | |
getInitialState() { | |
return { | |
keyboardSpace: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minutes;Value | |
0.000000;0.004045 | |
0.008333;0.004052 | |
0.016667;0.004097 | |
0.025000;0.004189 | |
0.033333;0.004260 | |
0.041667;0.004290 | |
0.050000;0.004309 | |
0.058333;0.004332 | |
0.066667;0.004360 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minutes;Value | |
0.000000;0.060563 | |
0.008333;0.061365 | |
0.016667;0.062198 | |
0.025000;0.063057 | |
0.033333;0.063888 | |
0.041667;0.064706 | |
0.050000;0.065535 | |
0.058333;0.066328 | |
0.066667;0.067090 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// middleware.js | |
import onHeaders from 'on-headers'; | |
export default function setupMiddleware(headers = [], options = {}) { | |
return function onRequest(req, res, next) { | |
// Do the action when headers are emitted for given res | |
onHeaders(res, _ => { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Line;Direction;StationA;StationB;Distance;Time | |
Bakerloo ;Southbound;HARROW & WEALDSTONE;KENTON;1,74;2,23 | |
Bakerloo ;Southbound;KENTON;SOUTH KENTON;1,40;1,88 | |
Bakerloo ;Southbound;SOUTH KENTON;NORTH WEMBLEY;0,90;1,50 | |
Bakerloo ;Southbound;NORTH WEMBLEY;WEMBLEY CENTRAL;1,27;1,92 | |
Bakerloo ;Southbound;WEMBLEY CENTRAL;STONEBRIDGE PARK;1,71;2,23 | |
Bakerloo ;Southbound;STONEBRIDGE PARK;HARLESDEN;1,53;2,13 | |
Bakerloo ;Southbound;HARLESDEN;WILLESDEN JUNCTION;1,05;1,65 | |
Bakerloo ;Southbound;WILLESDEN JUNCTION;KENSAL GREEN;1,50;2,47 | |
Bakerloo ;Southbound;KENSAL GREEN;QUEENS PARK;1,32;2,65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
Statuses | |
.findAll() | |
.sort({ | |
'$date': -1 //check if $ should be here and if -1 is the order you want | |
}) | |
.then(function(statuses) { | |
var timeOn = 0; |