id | name |
---|---|
1 | Jane |
2 | Max |
3 | John |
4 | Scott |
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 React, { Component } from 'react' | |
import { View, Text } from 'react-native' | |
import Tabs from './Tabs' | |
import Tab from './Tabs/Tab' | |
export default class ExamplePage extends Component { | |
state = { | |
selectedTab: 1 | |
} |
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 React, { Component } from 'react'; | |
import { ListView, StyleSheet } from 'react-native'; | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
marginTop: 20, | |
}, | |
row: { | |
padding: '10px' |
Endpoints for uploading large files in multiple chunks. Also has the ability to resume if the upload is interrupted.
Typical usage:
- Send a POST request to
/files
with the first chunk of the file and receive an upload id in return. - Repeatedly PATCH subsequent chunks using the upload id to identify the upload in progress and an offset representing the number of bytes transferred so far.
- After each chunk has been uploaded, the server returns a new offset representing the total amount transferred.
- After the last chunk commit the upload by passing its id to another endpoint such as
POST /videos
,POST /audio
, etc.
Example:
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
// containers/AlbumPage.js | |
import React, { Component, PropTypes } from 'react' | |
import { connect } from 'react-redux' | |
import { browserHistory } from 'react-router' | |
import { fetchAlbum, deleteAlbum } from '../actions/albums' | |
import { listPhotos } from '../actions/photos' | |
import bindAll from 'lodash/bindAll' | |
import AlbumHeader from '../components/AlbumHeader' | |
import PhotoGallery from '../components/PhotoGallery' |
Milliseconds in your DateTimes or Timestamps.
We got 'em, you want 'em.
NOTE: only MySQL 5.6.4 and above supports DATETIME's with more precision than a second. For reference see MySQL 5.6.4 Changelog
Shit needs to be PRECISE
Uploads large files in multiple chunks. Also has the ability to resume if the upload is interrupted.
Typical usage:
- Send a POST request to
/upload
with the first chunk of the file and receive an upload id in return. - Repeatedly PATCH subsequent chunks using the upload id to identify the upload in progress and an offset representing the number of bytes transferred so far.
- After each chunk has been uploaded, the server returns a new offset representing the total amount transferred.
- After the last chunk commit the upload by passing its id to another endpoint such as
POST /upload/commit/:id
: