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 APNS_KEY_ID="U8U48-----" | |
| export APNS_TEAM_ID="Z2N42-----" | |
| export APNS_KEY=$(cat << 'EOF' | |
| -----BEGIN PRIVATE KEY----- | |
| <...THE APN KEY CONTENT HERE...> | |
| -----END PRIVATE KEY----- | |
| EOF | |
| ) |
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 { SafeAreaProvider } from 'react-native-safe-area-context'; | |
| import * as AuthSession from 'expo-auth-session'; | |
| import { RefreshTokenRequestConfig, TokenResponse, TokenResponseConfig } from 'expo-auth-session'; | |
| import jwtDecode from 'jwt-decode'; | |
| import { useEffect, useState } from 'react'; | |
| import { Alert, Platform, Text, TouchableOpacity } from 'react-native'; | |
| import { useAsyncStorage } from '@react-native-async-storage/async-storage'; | |
| import * as React from 'react' | |
| import * as WebBrowser from 'expo-web-browser'; |
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
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
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
| function Node(value){ | |
| this.value = value; | |
| this.left = null; | |
| this.right = null; | |
| } | |
| function BinarySearchTree() { | |
| this.root = null; | |
| } | |
| BinarySearchTree.prototype.push = function (val) { |
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> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
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 | |
| killall Xcode | |
| xcrun -k | |
| xcodebuild -alltargets clean | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
| rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
| rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
| open /Applications/Xcode.app |
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 java.awt.*; | |
| import javax.swing.JScrollPane; | |
| import javax.swing.SwingUtilities; | |
| public class WrapLayout extends FlowLayout | |
| { | |
| private Dimension preferredLayoutSize; | |
| public WrapLayout() | |
| { |
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 | |
| $url = "https://fcm.googleapis.com/fcm/send"; | |
| $token = "your device token"; | |
| $serverKey = 'your server token of FCM project'; | |
| $title = "Notification title"; | |
| $body = "Hello I am from Your php server"; | |
| $notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1'); | |
| $arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high'); | |
| $json = json_encode($arrayToSend); | |
| $headers = array(); |