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 { CameraRoll } from "@react-native-camera-roll/camera-roll"; | |
| import React, { useEffect, useMemo, useRef } from 'react'; | |
| import { Pressable, StyleSheet, Text, View } from 'react-native'; | |
| import { Camera, VideoFile, useCameraDevice, useCameraPermission } from 'react-native-vision-camera'; | |
| import rnfs from 'react-native-fs'; | |
| import usePermissions from '../hooks/usePermissions'; | |
| const CameraScreen = () => { | |
| const { hasPermission, requestPermission } = useCameraPermission(); | |
| const device = useCameraDevice('back'); |
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
| networksetup -setv6off Wi-Fi | |
| networksetup -setv6automatic Wi-Fi |
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 androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import com.google.android.gms.maps.CameraUpdateFactory | |
| import com.google.android.gms.maps.SupportMapFragment | |
| import com.google.android.gms.maps.model.LatLng | |
| import com.google.android.gms.maps.model.LatLngBounds | |
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) |
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 | |
| ICON_PATH=$1 | |
| # Init Android icon setup | |
| convert $ICON_PATH -resize 48x48 ./android/app/src/main/res/mipmap-mdpi/ic_launcher.png | |
| convert $ICON_PATH -resize 72x72 ./android/app/src/main/res/mipmap-hdpi/ic_launcher.png | |
| convert $ICON_PATH -resize 96x96 ./android/app/src/main/res/mipmap-xhdpi/ic_launcher.png | |
| convert $ICON_PATH -resize 144x144 ./android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png | |
| convert $ICON_PATH -resize 192x192 ./android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png |
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
| // | |
| // ViewController.swift | |
| // stage | |
| // | |
| // Created by Cristina Martinez on 29/09/21. | |
| // | |
| import UIKit | |
| import CoreBluetooth | |
| import Network |
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
| # Convert the .cer file into a .pem file: | |
| $ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
| # Convert the private key’s .p12 file into a .pem file: | |
| $ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
| # Finally, combine the certificate and key into a single .pem file | |
| $ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
| # At this point it’s a good idea to test whether the certificate works. |
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"?> | |
| <configuration> | |
| <system.webServer> | |
| <defaultDocument> | |
| <files> | |
| <clear /> | |
| <add value="index.php" /> | |
| <add value="default.aspx" /> | |
| <add value="Default.htm" /> | |
| <add value="Default.asp" /> |