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 { createCharacter } from "@lib/pixi" | |
| import { AnimatedIcons } from "@lib/pixi/icons" | |
| import { root } from "@lib/root" | |
| import { merge } from "effector" | |
| import * as PIXI from "pixi.js" | |
| import { GROUND_Y, HERO_X, TARGET_X } from "../constants" | |
| import { attachEffect } from "../lib" | |
| const { createEvent } = root | 
  
    
      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 { of, Subject, defer, Observable } from "rxjs" | |
| import { map, catchError, flatMap, switchMap } from "rxjs/operators" | |
| import { | |
| type Event, | |
| type Store, | |
| createEvent, | |
| createStore, | |
| merge, | 
  
    
      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 { type Store, combine, forward } from "effector" | |
| import { createGate } from "effector-react" | |
| import { mapTo, createListFetching } from "@lib/effector-extend" | |
| import type { GeoPoint, Event as CardEvent, Place } from "@lib/ws" | |
| import { | |
| wsSearchForPlacecEvents, | |
| $likes, | |
| combineEventsWithLikesState, | 
  
    
      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 { | |
| type Store, | |
| type Effect, | |
| type Event, | |
| sample, | |
| guard, | |
| combine, | |
| restore, | 
  
    
      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 { createEvent, createStore } from "effector"; | |
| const canvas = document.querySelector("canvas"); | |
| const ctx = canvas.getContext("2d"); | |
| const scoreElement = document.querySelector("#score"); | |
| const DIRECTIONS = { | |
| LEFT: 37, | |
| RIGHT: 39, | |
| TOP: 38, | 
  
    
      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
    
  
  
    
  | const LEFT = 65; | |
| const RIGHT = 68; | |
| function keyCodeToString(keyCode) { | |
| const validSceme = [LEFT, RIGHT].includes(keyCode); | |
| if (validSceme) { | |
| const str = { | |
| [LEFT]: "left", | |
| [RIGHT]: "right" | 
  
    
      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 validatejs from 'validate.js' | |
| const validate = (fieldName, value, rule) => { | |
| const result = validatejs({ [fieldName]: value }, { [fieldName]: rule }) | |
| if (result) { | |
| return result[fieldName][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
    
  
  
    
  | import React from 'react' | |
| import { StyleSheet, Text, TouchableOpacity } from 'react-native' | |
| import { Card, CardItem } from 'native-base' | |
| import { nest, compose, withPropsOnChange } from 'recompose' | |
| import * as Animatable from 'react-native-animatable-unmountable' | |
| import { FlatListWithError } from 'features/common' | |
| import { withLocalFetch } from 'react-local-fetch' | |
| import { H3, Loader } from 'ui' | |
| import { colors } from 'ui/colors' | |
| import { Distance } from './distance' | 
  
    
      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
    
  
  
    
  | function buildNumber (number) { | |
| return (op) => { | |
| if (typeof op === 'function') { | |
| return op(number) | |
| } | |
| return number | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | const isZero = (s) => s == 0 | |
| const lcd = (numerator, denominator) => { | |
| for (let i = Math.abs(numerator); i > 0; i--) { | |
| if ( | |
| Number.isInteger(numerator / i) | |
| && Number.isInteger(denominator / i) | |
| ) { | |
| return i | |
| } | 
NewerOlder