CMD + Ctrl + Z -> Show Inspector
import { Platform, StyleSheet } from 'react-native';
import fs from 'react-native-fs';
import { decode } from 'base64-arraybuffer';
import AWS from 'aws-sdk';
import 'react-native-get-random-values'
import { customAlphabet } from 'nanoid'
const nanoid = customAlphabet('1234567890abcdef', 10)
This file contains 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
/* Basic example of saving cookie using axios in node.js and session's recreation after expiration. | |
* We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js | |
* Also, this example supports parallel request and send only one create session request. | |
* */ | |
const BASE_URL = "https://google.com"; | |
// Init instance of axios which works with BASE_URL | |
const axiosInstance = axios.create({ baseURL: BASE_URL }); |
sudo apt-get install virtualbox-guest-dkms
copy and páte:
vitualbox => setting of os => general => advanced tab => select 2 Bidirectional
in tool bar ubuntu => devices => insert guest addition cd image...
in side tool bar of ubuntu, it has cd ( vbox gas ), open it => right top corner => run software => open cmd type: reboot =>done
For IOS:
create bundle id at the page: http://developer.apple.com/ => Identifier
create New app in https://appstoreconnect.apple.com/apps
run command: expo build:ios
Fill in apple account info, choose build mode to ipa, don't choose expo auto generate mode because it will generate different bundle id
When the build is done, it will be pushed to the expo page (the expo account is logged in at the terminal console).
const url = 'https://test/com?x=a&y=b#old&p=8397543#dsf43';
function getUrlVars(url) {
var vars = {};
var parts = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
console.log(getUrlVars(url)['x']) // a
import React, { useState, useCallback } from "react";
import "./styles.css";
import { debounce } from "lodash";
export default function App() {
const [userQuery, setUserQuery] = useState("");
const sendQuery = query => console.log(`Querying for ${query}`);
const delayedQuery = useCallback(debounce(q => sendQuery(q), 500), []);
Step 1: Download warpplus.conf
file.
Step 2: Download and Install WireGuard for MacOS.
Step 3: Open WireGuard and click "Import Tunnel (s) from file" button.
Step 4: Select "warpplus.conf" file and click "Active" button
this is file