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
window.openToky = function openToky(number) { | |
const title = 'Toky'; | |
const w=300; | |
const h=500; | |
const _options = 'scrollbars=no,resizable=no'; | |
const url = 'https://app.toky.co/business/dialer#?call='+number; | |
// Fixes dual-screen position Most browsers Firefox | |
const dualScreenLeft = window.scareenLeft != undefined ? window.screenLeft : screen.left; | |
const dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; | |
const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; |
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 delay = (retryCount: number, delayMultiplier: number) => | |
new Promise((resolve) => setTimeout(resolve, delayMultiplier * retryCount)); | |
export const exponentialBackOff = async <T>( | |
callback: () => Promise<T>, | |
options: { maxRetries: number; delayMultiplier: number } = { | |
maxRetries: 3, | |
delayMultiplier: 500, | |
}, | |
retryCount = 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
// Code blocks alphabetized by state | |
const states = [ | |
{ min: 35000, max: 36999, code: 'AL', long: 'Alabama' }, | |
{ min: 99500, max: 99999, code: 'AK', long: 'Alaska' }, | |
{ min: 85000, max: 86999, code: 'AZ', long: 'Arizona' }, | |
{ min: 71600, max: 72999, code: 'AR', long: 'Arkansas' }, | |
{ min: 90000, max: 96699, code: 'CA', long: 'California' }, | |
{ min: 80000, max: 81999, code: 'CO', long: 'Colorado' }, | |
{ min: 6000, max: 6999, code: 'CT', long: 'Connecticut' }, | |
{ min: 19700, max: 19999, code: 'DE', long: 'Deleware' }, |
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 { useNavigation } from '@react-navigation/native'; | |
import React from 'react'; | |
import Animated, { Easing, set, useCode } from 'react-native-reanimated'; | |
import { interpolateColor, loop, useValues } from 'react-native-redash'; | |
import { scale } from 'react-native-size-matters'; | |
import { Container, Touchable } from '../../components'; | |
import { COLORS } from '../../utils'; | |
const Line: React.FC<{ color: Animated.Node<number> }> = ({ color }) => ( | |
<Animated.View |
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
// TODO: typing of this could be better | |
export const getColor = <T>(colorPalette: T, defaultColor: keyof T) => ( | |
level?: keyof T, | |
) => (colorPalette[level || defaultColor] as unknown) as string; | |
export interface IColorPaletteNumbered { | |
0: string; | |
1: string; | |
2: string; | |
3: string; |
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 { ShadowStyleIOS } from 'react-native'; | |
export default ( | |
depth?: 'min' | 'default' | 'max', | |
color?: string, | |
): { | |
elevation: number; | |
} & ShadowStyleIOS => { | |
switch (depth) { | |
case 'min': |
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 { Animated, Image, StyleSheet, ImageSourcePropType } from 'react-native' | |
import { | |
PinchGestureHandler, | |
PinchGestureHandlerStateChangeEvent, | |
State, | |
} from 'react-native-gesture-handler' | |
import { Container } from '../ui' | |
import Colors from '../../constants/Colors' |
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 { Image } from 'react-native'; | |
import Svg, { Path } from 'react-native-svg'; | |
import styled from 'styled-components/native'; | |
import { Colors, moderateScale } from '../../constants'; | |
import { LevelCircleContainer } from '../shared/components/level/LevelDetails/styled'; | |
import { Box, Container, Text } from '../shared/ui'; | |
import { Icons } from '../shared/ui/icons'; | |
import { AnimatedCircularProgress } from 'react-native-circular-progress'; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DisplayProductID</key> | |
<integer>23025</integer> | |
<key>DisplayProductName</key> | |
<string>SwitchResX4 - LG ULTRAWIDE</string> | |
<key>DisplayVendorID</key> | |
<integer>7789</integer> |
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
JWT_SECRET=secret |
NewerOlder