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
keytool -list -v -alias androiddebugkey -keystore ./android/app/debug.keystore -storepass android -keypass android |
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
module.exports = { | |
content: [ | |
"./pages/**/*.{js,ts,jsx,tsx}", | |
"./components/**/*.{js,ts,jsx,tsx}", | |
], | |
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"], | |
theme: { | |
screens: { | |
xs: "10px", | |
sm: "640px", |
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, { useState, useEffect } from "react"; | |
import { Button, Image, View, Platform, ActivityIndicator } from "react-native"; | |
import * as ImagePicker from "expo-image-picker"; | |
import { auth, storage, firebase, db } from "../utils/firebase"; | |
import { | |
getStorage, | |
ref, | |
uploadBytesResumable, | |
getDownloadURL, | |
} from "firebase/storage"; |
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 the functions you need from the SDKs you need | |
import * as firebase from "firebase"; | |
import "firebase/auth"; | |
import "firebase/firestore"; | |
// import "firebase/auth"; | |
// import "firebase/analytics"; | |
// TODO: Add SDKs for Firebase products that you want to use | |
// https://firebase.google.com/docs/web/setup#available-libraries |
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
sudo netstat -tulnp | grep :80 |
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
[ | |
{ | |
"Afghanistan": "AF", | |
"Åland Islands": "AX", | |
"Albania": "AL", | |
"Algeria": "DZ", | |
"American Samoa": "AS", | |
"AndorrA": "AD", | |
"Angola": "AO", | |
"Anguilla": "AI", |
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
// Array | |
const arr = [{id: "1", name: "Toby"}, {id: "2", name: "John"} ] | |
//remove item | |
const itemToBeRemoved = { id: "1", name: "Toby" }; | |
// Function to rem item | |
arr.splice( | |
arr.findIndex((a) => a.id === itemToBeRemoved._id), | |
1 |
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 arr = YOUR_ARRAY | |
const newId = YOUR_NEW_ID; //new id | |
if (!arr?.includes(newId)) { | |
console.log("add now"); | |
arr?.push(newId); //adding to array because value doesnt exists | |
} else { | |
console.log("rem now"); |
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
/** | |
Replace the "<DOCID>" with your document ID, or the entire URL per say. Should be something like: | |
var EMAIL_TEMPLATE_DOC_URL = 'https://docs.google.com/document/d/asdasdakvJZasdasd3nR8kmbiphqlykM-zxcrasdasdad/edit?usp=sharing'; | |
*/ | |
var EMAIL_TEMPLATE_DOC_URL = 'https://docs.google.com/document/d/<DOCID>/edit?usp=sharing'; | |
var EMAIL_SUBJECT = 'This is an important email'; | |
/** | |
* Sends a customized email for every response on a form. |