Skip to content

Instantly share code, notes, and snippets.



  • Denver
View GitHub Profile
pablit07 / tests.js
Last active Jul 23, 2018
gameSense Real Time NodeJS Test
View tests.js
// 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
View day-pass-clone.js
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) {