Install dependencies:
npm install -g @microsoft/rush
Initialize the project:
| import SQLite from 'react-native-sqlite-2' | |
| import {Platform} from "react-native"; | |
| const openedDb = {}; | |
| /** | |
| * Wrapper for react-native-sqlite-2. | |
| * Methods: | |
| * <ul> | |
| * <li>Promise<Array<Object>> {@link execute}(statement, ...variables) : Execute a statement. Variables will be binded into the statement. It returns the list of items matching the statement.</li> |
| // upload.js, from https://github.com/googledrive/cors-upload-sample | |
| // Contributors Steve Bazyl, Mike Procopio, Jeffrey Posnick, Renaud Sauvain | |
| // License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Implements Resumable Upload for Google Drive as described by | |
| // https://developers.google.com/drive/v3/web/resumable-upload | |
| // | |
| // Modified by Paul Brewer, Economic and Financial Technology Consulting LLC | |
| // Nov. 1 2017 | |
| // 1. use Google Drive API V3 instead of V2 |
| /** | |
| * @author Jan Marsch (@kekscom) | |
| * @example see http://jsfiddle.net/osmbuildings/2e5KX/5/ | |
| * @example thickLineToPolygon([{x:50,y:155}, {x:75,y:150}, {x:100,y:100}, {x:50,y:100}], 20) | |
| * @param polyline {array} a list of point objects in format {x:75,y:150} | |
| * @param thickness {int} line thickness | |
| */ | |
| var thickLineToPolygon = (function () { | |
| function getOffsets(a, b, thickness) { |
| /** | |
| reference - | |
| https://developers.google.com/accounts/docs/OAuth2WebServer | |
| https://code.google.com/apis/console/ | |
| https://developers.google.com/+/api/latest/ | |
| **/ | |
| ////handle all requests here | |
| function doGet(e) { |
Use it with KindleGen
kindlegen dic.opf