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 { BottomSheetModal, BottomSheetModalProps } from '@gorhom/bottom-sheet'; | |
| import { useCallback, useRef } from 'react'; | |
| import { BackHandler, NativeEventSubscription } from 'react-native'; | |
| /** | |
| * hook that dismisses the bottom sheet on the hardware back button press if it is visible | |
| * @param bottomSheetRef ref to the bottom sheet which is going to be closed/dismissed on the back press | |
| */ | |
| export const useBottomSheetBackHandler = ( | |
| bottomSheetRef: React.RefObject<BottomSheetModal | null>, |
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
| // Expo SDK40 | |
| // expo-blur: ~8.2.2 | |
| // expo-haptics: ~8.4.0 | |
| // react-native-gesture-handler: ~1.8.0 | |
| // react-native-reanimated: ^2.0.0-rc.0 | |
| // react-native-safe-area-context: 3.1.9 | |
| import React, { useState } from 'react'; | |
| import { | |
| Image, |
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 { createContext, forwardRef, useCallback, useMemo } from "react"; | |
| import { FlatList, FlatListProps, ViewToken } from "react-native"; | |
| import Animated, { useSharedValue } from "react-native-reanimated"; | |
| const MAX_VIEWABLE_ITEMS = 4; | |
| type ViewabilityItemsContextType = string[]; | |
| export const ViewabilityItemsContext = createContext< | |
| Animated.SharedValue<ViewabilityItemsContextType> |
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 { Keyboard, Platform, KeyboardEvent } from 'react-native'; | |
| const useKeyboardBottomInset = () => { | |
| const [bottom, setBottom] = React.useState(0); | |
| const subscriptions = React.useRef([]); | |
| React.useEffect(() => { | |
| function onKeyboardChange(e) { | |
| if ( | |
| e.startCoordinates && |
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 { withDangerousMod, createRunOncePlugin } = require('@expo/config-plugins'); | |
| const { readFile, writeFile } = require('fs'); | |
| const pkg = require('./node_modules/react-native-text-input-mask/package.json'); | |
| function withIosTextInputMask(config) { | |
| return withDangerousMod(config, [ | |
| 'ios', | |
| async (config) => { | |
| const filePath = 'ios/Podfile'; |
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
| <?php | |
| error_reporting(0); | |
| include 'redaxo/include/master.inc.php'; | |
| error_reporting(E_ALL ^E_NOTICE); | |
| ini_set('display_errors', 1); | |
| $CLONE_THIS_ID = 184; | |
| $DUPLICATE_MODULES = 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
| <?php | |
| /** | |
| * @author Atanas Vasilev | |
| * @link http://pastebin.com/dHbqjUNy | |
| */ | |
| define('STR_BOM', "\xEF\xBB\xBF"); | |
| $file = null; | |
| $directory = getcwd(); |
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
| <!doctype html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Orientation Test</title> | |
| <style> | |
| body { text-align: center; } | |
| @media all and (orientation:portrait) { | |
| body { font-size: 35em; margin-top: .3em; } | |
| } |
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
| #install esseintal packages for opencv | |
| apt-get -y install build-essential | |
| apt-get -y install cmake | |
| apt-get -y install pkg-config | |
| apt-get -y install libgtk2.0-dev libgtk2.0 | |
| apt-get -y install zlib1g-dev | |
| apt-get -y install libpng-dev | |
| apt-get -y install libjpeg-dev | |
| apt-get -y install libtiff-dev | |
| apt-get -y install libjasper-dev |
NewerOlder