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 { useWindowDimensions } from 'react-native' | |
| import { Gesture } from 'react-native-gesture-handler' | |
| import Animated, { | |
| Extrapolation, | |
| WithSpringConfig, | |
| interpolate, | |
| scrollTo, | |
| useAnimatedRef, | |
| useAnimatedScrollHandler, | |
| useAnimatedStyle, |
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
| rvm_log() | |
| { | |
| [[ ${rvm_quiet_flag} == 1 ]] && return | |
| + printf "%b" "$*" | |
| - printf "%b" "$*\n" | |
| } |
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
| export NODE_BINARY="/usr/local/bin/node" |
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
| #!/bin/bash | |
| # Institut für Wetter- und Klimakommunikation GmbH / Qmet | |
| # O. Maywald <[email protected]> | |
| # This should install CDO with grib2, netcdf and HDF5 support. Note that the binaries are in /opt/cdo-install/bin. | |
| # For further information look: | |
| # http://www.studytrails.com/blog/install-climate-data-operator-cdo-with-netcdf-grib2-and-hdf5-support/ | |
| # docker-command |
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
| diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt | |
| index f6dc227..f2446f0 100644 | |
| --- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt | |
| +++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraView.kt | |
| @@ -356,9 +356,11 @@ class CameraView(context: Context) : FrameLayout(context), LifecycleOwner { | |
| // User has selected a custom format={}. Use that | |
| val format = DeviceFormat(format!!) | |
| Log.i(TAG, "Using custom format - photo: ${format.photoSize}, video: ${format.videoSize} @ $fps FPS") | |
| - previewBuilder.setTargetResolution(format.videoSize) | |
| - imageCaptureBuilder.setTargetResolution(format.photoSize) |
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, { forwardRef, useImperativeHandle, useRef } from 'react'; | |
| const Component = forwardRef((_, ref) => { | |
| useImperativeHandle(ref, () => ({ | |
| internalPress() { | |
| // whatever you want to call | |
| }, | |
| })); | |
| return <div />; // DOM |
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
| XMLHttpRequest = GLOBAL.originalXMLHttpRequest ? | |
| GLOBAL.originalXMLHttpRequest : | |
| GLOBAL.XMLHttpRequest; | |
| // fetch logger | |
| global._fetch = fetch; | |
| global.fetch = function (uri, options, ...args) { | |
| return global._fetch(uri, options, ...args).then((response) => { | |
| console.log('Fetch', { request: { uri, options, ...args }, response }); | |
| return response; |
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
| // This list comes from Wikipedia deprecated timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
| const deprecatedList = [ | |
| { old: 'Australia/ACT', new: 'Australia/Sydney' }, | |
| { old: 'Australia/LHI', new: 'Australia/Lord_Howe' }, | |
| { old: 'Australia/North', new: 'Australia/Darwin' }, | |
| { old: 'Australia/NSW', new: 'Australia/Sydney' }, | |
| { old: 'Australia/Queensland', new: 'Australia/Brisbane' }, | |
| { old: 'Australia/South', new: 'Australia/Adelaide' }, | |
| { old: 'Australia/Tasmania', new: 'Australia/Hobart' }, | |
| { old: 'Australia/Victoria', new: 'Australia/Melbourne' }, |
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
| cd www/ | |
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
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, { PureComponent } from 'react'; | |
| import { TimelineLite } from 'gsap'; | |
| import { add } from 'gsap-tools'; | |
| export default class Example1 extends PureComponent { | |
| componentDidMount() { | |
| this.animate(); | |
| } |
NewerOlder