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
| case CONTENT_TYPE_HLS: | |
| if (!BuildConfig.USE_EXOPLAYER_HLS) { | |
| DebugLog.e("Exo Player Exception", "HLS is not enabled!"); | |
| throw new IllegalStateException("HLS is not enabled!"); | |
| } | |
| DataSource.Factory dataSourceFactory = mediaDataSourceFactory; | |
| if (useCache) { | |
| dataSourceFactory = RNVSimpleCache.INSTANCE.getCacheFactory(buildHttpDataSourceFactory(true)); |
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
| case CONTENT_TYPE_HLS: | |
| if (!BuildConfig.USE_EXOPLAYER_HLS) { | |
| DebugLog.e("Exo Player Exception", "HLS is not enabled!"); | |
| throw new IllegalStateException("HLS is not enabled!"); | |
| } | |
| mediaSourceFactory = new HlsMediaSource.Factory( | |
| mediaDataSourceFactory | |
| ).setAllowChunklessPreparation(source.getTextTracksAllowChunklessPreparation()); | |
| break; |
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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| */ | |
| import React, {useCallback, useMemo, useRef, useState} from 'react'; | |
| import { | |
| FlatList, |
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 N = 10 | |
| const M = 500 | |
| const regions: LatLng[] = []; | |
| for (let i = 0; i < N; i++) { | |
| regions.push({ | |
| latitude: Math.random() * (90 - (-90) + 1) + (-90), | |
| longitude: Math.random() * (180 - (-180) + 1) + (-180), | |
| // latitudeDelta: Math.random() * (90 - (-90) + 1) + (-90), |
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
| // COMPARISON OF getMarkersRegion | |
| const points: LatLng[][] = [ | |
| [{"latitude": -12.393807294954726, "longitude": 141.31438679697357}, {"latitude": -6.637261651568423, "longitude": 147.85242760508373}], | |
| [{"latitude": 7.8340397371399035, "longitude": 168.75716698496655}, {"latitude": 19.303595282025327, "longitude": 166.63624108164623}], | |
| [{"latitude": 43.08771393436908, "longitude": -79.04411780507252}, {"latitude": 42.73462992065626, "longitude": -67.82385378326413}, {"latitude": 36.04365063076975, "longitude": -76.16071294294142}], | |
| [{"latitude": 12.344079184681945, "longitude": -69.48210608632252}, {"latitude": 5.686896063275327, "longitude": -62.06181800038502}, {"latitude": 14.464441617331886, "longitude": -61.712996996153244}, {"latitude": 4.135614177285231, "longitude": -51.26287766987179}], | |
| [{"latitude": -37.17120002933805, "longitude": -73.60304396243782}, {"latitude": -33.58965422969342, "longitude": -78.87254798085377}, {"latitude": -40.72626411656719, "longitude": -62.25911745789756}], | |
| ] |
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
| // COMPARISON OF REGIONTOBBOX | |
| const regions = [ | |
| {"latitude": 12.659451817382699, "latitudeDelta": 39.95744341048457, "longitude": -61.587261442027916, "longitudeDelta": 21.62627598933674}, | |
| {"latitude": 19.216541784619864, "latitudeDelta": 38.768502265662676, "longitude": -70.31848002637285, "longitudeDelta": 21.62627598933674}, | |
| {"latitude": 39.05750915295428, "latitudeDelta": 32.27403301558568, "longitude": -74.81466260831506, "longitudeDelta": 21.62627598933672}, | |
| {"latitude": 45.49523218209459, "latitudeDelta": 29.275740050278934, "longitude": -64.61601111547976, "longitudeDelta": 21.626275989336726}, | |
| {"latitude": 49.64783243198588, "latitudeDelta": 35.50712147690722, "longitude": -2.3429850626606212, "longitudeDelta": 28.259200897150112}, | |
| {"latitude": 27.58631429206804, "latitudeDelta": 47.33270055822767, "longitude": 58.04640148781963, "longitudeDelta": 28.259200897150123}, | |
| {"latitude": 28.1095422954203, "latitudeDelta": 47.12977434984119, "longitude": 97.63274602555802, "longitudeDelta": 28 |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:statsfl/statsfl.dart'; | |
| void main() { | |
| runApp(const MainApp()); | |
| } |
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 { Canvas, Rect } from '@shopify/react-native-skia'; | |
| import React, { useEffect, useRef } from 'react'; | |
| import { Dimensions, StyleSheet } from 'react-native'; | |
| import { DerivedValue, Easing, useDerivedValue, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated'; | |
| const squares = Array.from(Array(100).keys()); | |
| const screenWidth = Dimensions.get('screen').width; | |
| const screenHeight = Dimensions.get('screen').height; |
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, { useEffect, useMemo, useRef } from 'react'; | |
| import { | |
| Dimensions, | |
| SafeAreaView, | |
| StyleSheet, | |
| ViewStyle, | |
| } from 'react-native'; | |
| import Animated, { Easing, useAnimatedStyle, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated'; | |
| const screenWidth = Dimensions.get('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
| import React, { useMemo } from 'react'; | |
| import { SafeAreaView, StyleSheet } from 'react-native'; | |
| import { NavigationContainer } from '@react-navigation/native'; | |
| import { createStackNavigator, StackCardStyleInterpolator } from '@react-navigation/stack'; | |
| import { MainScreen } from './src/screens/MainScreen'; | |
| import { ReelsScreen } from './src/screens/ReelsScreen'; | |
| import { useTouchStore } from './src/store'; | |
| const Stack = createStackNavigator(); |
NewerOlder