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
[ | |
{ | |
"flag": "🇼🇫", | |
"name": "Wallis and Futuna", | |
"alpha3Code": "WLF", | |
"currency": "XPF", | |
"phoneCode": "+681" | |
}, | |
{ | |
"flag": "🇮🇸", |
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 { onRequest } = require("firebase-functions/v2/https"); | |
const { setGlobalOptions } = require("firebase-functions/v2"); | |
const { default: axios } = require("axios"); | |
setGlobalOptions({ maxInstances: 10 }); | |
const cors = require('cors')({ origin: true }); | |
exports.sample = onRequest(async (request, response) => { | |
cors(request, response, async () => { |
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
// | |
// HostedCheckout.swift | |
// | |
// Created by Nawaf Abdullah on 02/05/2023. | |
// | |
/* | |
Example Usage: | |
VStack { | |
HostedCheckout( |
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
<html> | |
<head> | |
<script> | |
var csvFile = null | |
var merchantList = [] | |
var merchants = [] | |
var updateResult = [] | |
var success = 0 | |
var failed = 0 |
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 Foundation | |
import SwiftUI | |
struct ImagePicker: UIViewControllerRepresentable { | |
func makeCoordinator() -> Coordinator { | |
Coordinator(self) | |
} | |
@Environment(\.presentationMode) var presentationMode | |
@Binding var image: UIImage? |
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 Foundation | |
import SwiftUI | |
import UIKit | |
struct DocumentPicker: UIViewControllerRepresentable { | |
@Binding var filePath: URL? | |
func makeCoordinator() -> DocumentPicker.Coordinator { | |
return DocumentPicker.Coordinator(parent1: self) |
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 SwiftUI | |
import Contacts | |
import Combine | |
import Foundation | |
import ContactsUI | |
struct ContactPicker: UIViewControllerRepresentable { | |
typealias UIViewControllerType = EmbeddedContactPickerViewController |
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 Select = () => { | |
return ( | |
<FormControl style={NewUserStyles.Input}> | |
<InputLabel error={this.state.Error_Industry}>Industry</InputLabel> | |
<Select value={this.state.Industry} | |
error={this.state.Error_Industry} | |
onChange={(e) => {this.setState({Industry: e.target.value})}} | |
> | |
{ | |
Industries.map((item) => { |
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 TextField from '@material-ui/core/TextField'; | |
import SearchIcon from '@material-ui/icons/Search'; | |
import InputAdornment from '@material-ui/core/InputAdornment'; | |
import InputLabel from '@material-ui/core/InputLabel'; | |
import FormControl from '@material-ui/core/FormControl'; | |
import Select from '@material-ui/core/Select'; | |
import MenuItem from '@material-ui/core/MenuItem'; | |
const Search = () => { | |
const SearchStyles = { |
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
Firebase.storage().ref(this.state.User.uid).listAll() | |
.then((result) => { | |
result.items.forEach((imgRef) => { | |
console.log("ListAll > " + imgRef.fullPath) | |
}) | |
}) |
NewerOlder