This script removes the left panel on messenger (your other conversations).
This is useful if you want to test a messenger bot distraction-free or doing a demo of your bot.
| /* | |
| * Resources | |
| * Medium: https://medium.com/walletconnect/how-to-build-a-react-native-dapp-with-walletconnect-28f08f332ed7 | |
| * YouTube: https://www.youtube.com/watch?v=mGtEPQfqMV8 | |
| * Docs: https://docs.walletconnect.com/2.0/advanced/walletconnectmodal/about?platform=react-native | |
| */ | |
| import { WalletConnectModal, useWalletConnectModal } from "@walletconnect/modal-react-native" | |
| import { StyleSheet, Text, View, TouchableHighlight } from "react-native" | |
| const projectId = 'my-project-id' // see https://cloud.walletconnect.com/ |
| /** | |
| * Usage: | |
| * 1. Paste this into a main.js file in some empty directory. | |
| * 2. Run: `yarn add web3 ethers abi-decoder`. | |
| * 3. Go to contract's page | |
| * https://etherscan.io/address/0x25ed58c027921E14D86380eA2646E3a1B5C55A8b | |
| * and then to code and then copy "Contract ABI" and save it in the same dir | |
| * as abi.json. | |
| * 4. Create empty file backup.txt. | |
| * 5. Download CSV data with transactions from etherscan page and save as |
| const puppeteer = require('puppeteer'); | |
| const escapeXpathString = str => { | |
| const splitedQuotes = str.replace(/'/g, `', "'", '`); | |
| return `concat('${splitedQuotes}', '')`; | |
| }; | |
| const clickByText = async (page, text) => { | |
| const escapedText = escapeXpathString(text); | |
| const linkHandlers = await page.$x(`//a[contains(text(), ${escapedText})]`); |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| function dots(width, height, density) { | |
| for (let i = 0; i < density; i += 1) { | |
| createDot( | |
| Math.floor(Math.random() * width), | |
| Math.floor(Math.random() * height), | |
| ); | |
| } | |
| } | |
| function createDot(x, y) { |
This script removes the left panel on messenger (your other conversations).
This is useful if you want to test a messenger bot distraction-free or doing a demo of your bot.
| abdominocardi.ac | |
| autotr.actor | |
| cephalotr.actor | |
| cocontr.actor | |
| coen.actor | |
| cornf.actor | |
| counter.actor | |
| effr.actor | |
| idemf.actor | |
| lithofr.actor |
| const keyPublishable = process.env.PUBLISHABLE_KEY; | |
| const keySecret = process.env.SECRET_KEY; | |
| const app = require("express")(); | |
| const stripe = require("stripe")(keySecret); | |
| app.set("view engine", "pug"); | |
| app.use(require("body-parser").urlencoded({extended: false})); | |
| app.get("/", (req, res) => |
| /* | |
| Node.js, express, oauth example using Twitters API | |
| Install Dependencies: | |
| npm install express | |
| npm install oauth | |
| Create App File: | |
| Save this file to app.js | |