Skip to content

Instantly share code, notes, and snippets.

View pablit07's full-sized avatar
🎯
Focusing

pablit07

🎯
Focusing
  • Denver
View GitHub Profile
@pablit07
pablit07 / tests.js
Last active July 23, 2018 03:22
gameSense Real Time NodeJS Test
// Gears problem
// Connect an input force to a simulated system of gears
//
// there are two sets of gears in this system, cogs and sprockets
// cogs are connected in series and so are sprockets, but the two are not connected (they are parallel)
//
// **Provide: a function, turnSystem, that accepts joules, a cog, and a sprocket as input, and returns a promise that resolves when both gears stop turning
// cog and sprocket simulate the first gear in the two sets
// calls should be asynchronous and return promise that resolve when the gears stops turning
//
import React from 'react';
import { StyleSheet, Text, View, Image, Animated, Easing, TouchableWithoutFeedback } from 'react-native';
import moment from 'moment';
import Dimensions from 'Dimensions';
var { width, height } = Dimensions.get('window');
export default class App extends React.Component {
constructor(props) {
super(props);