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
| # arrowMesh.obj | |
| # created by Map Creator | |
| v 0.0 -0.1 0.0 | |
| v 0.0 0.1 0.0 | |
| v 0.0 -0.1 -0.6 | |
| v 0.0 0.1 -0.6 | |
| v 0.0 -0.3 -0.6 | |
| v 0.0 0.3 -0.6 | |
| v 0.0 0.0 -1.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
| // @flow | |
| import React, {type Node} from 'react'; | |
| import {View} from 'react-native'; | |
| import ActivityIndicator from './ActivityIndicator'; | |
| type FetchResult = { | |
| name: string, | |
| result: *, |
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
| [Wed Jul 11 04:29:42 2018] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 3.1.3.201711070422 (Agent Core 3.2.6) | |
| [Wed Jul 11 04:29:42 2018] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883 | |
| 2018-07-11T04:29:42.106Z pid:2165 worker:0 INFO supervisor starting (pid 2165) | |
| 2018-07-11T04:29:42.110Z pid:2165 worker:0 INFO supervisor reporting metrics to `internal:` | |
| 2018-07-11T04:29:42.118Z pid:2165 worker:0 INFO supervisor size set to 2 | |
| 2018-07-11T04:29:42.187Z pid:2165 worker:0 INFO supervisor started worker 1 (pid 2179) | |
| 2018-07-11T04:29:42.269Z pid:2165 worker:0 INFO supervisor started worker 2 (pid 2185) | |
| 2018-07-11T04:29:42.270Z pid:2165 worker:0 INFO supervisor resized to 2 | |
| 2018-07-11T04:29:42.337Z pid:2179 worker:1 [Wed Jul 11 04:29:42 2018] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 3.1.3.201711070422 (Agent Core 3.2.6) | |
| 2018-07-11T04:29:42.378Z pid:2179 worker:1 [Wed Jul 11 04:29:42 2018] com.ibm.diagnostics.healthcenter.mqttINFO: |
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 from 'react'; | |
| import {StyleSheet, Text, View} from 'react-native'; | |
| import {ModalProvider} from './Modal'; | |
| import Main from './Main'; | |
| export default class App extends React.Component { | |
| render() { | |
| return ( | |
| <ModalProvider> |
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
| /* | |
| Value flicker animation => react-native-ticker | |
| Chart library => victor-native | |
| */ | |
| import React from 'react'; | |
| import { StyleSheet, Text, View } from 'react-native'; | |
| import Ticker, { Tick } from 'react-native-ticker'; | |
| import { | |
| VictoryChart, |
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
| // basic symbols refered to http://www.mathsisfun.com/roman-numerals.html | |
| function getBasicSymbols() { | |
| let symbols = new Map(); | |
| symbols.set(1, 'I'); | |
| symbols.set(5, 'V'); | |
| symbols.set(10, 'X'); | |
| symbols.set(50, 'L'); | |
| symbols.set(100, 'C'); | |
| symbols.set(500, 'D'); | |
| symbols.set(1000, 'M'); |
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
| // check diagonal | |
| let dx = focusCoordinate.x - anchorCoordinate.x; | |
| let dy = focusCoordinate.y - anchorCoordinate.y; | |
| if (Math.abs(dx) === Math.abs(dy)) { | |
| let loopCount = 1; | |
| let getCalculatedCol = (iterator: number) => { | |
| if (dx === dy) { | |
| // diagonal from top left to bottom right or vice versa | |
| let col = Math.min(focusCoordinate.x, anchorCoordinate.x); |
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
| // @flow | |
| const ELEMENT_NODE = 1; | |
| export default function ensureElement(el: Element | Text | null): ?Element { | |
| if (!el || el.nodeType !== ELEMENT_NODE) { | |
| return; | |
| } | |
| let element: any = el; | |
| return (element: Element); | |
| } |
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
| // @flow | |
| let scrollAnimationTimeout: ?mixed; | |
| function easeInOutQuad(t: number, b: number, c: number, d: number) { | |
| t /= d / 2; | |
| if (t < 1) { | |
| return c / 2 * t * t + b; | |
| } | |
| t--; |
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
| // @flow | |
| import React, {Children} from 'react'; | |
| type Props = { | |
| maxStringLength: number; | |
| children?: React$Element<*>; | |
| }; | |
| let maxString = 13; | |
| export default function Elipsis(props: Props) { |