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
function StakedModal() { | |
const {modal} = ModalContext.useContext(['modal']); | |
const [{ | |
modals, | |
}, ss] = useStateReducer({ | |
modals: [], | |
}); | |
const create = () => { |
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
.map((u, idx) => `${idx + 1}. ${u.address} (${u.username})`).join('\n') |
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
function getRandoms() { | |
const examples = 100; | |
for (var i = 0; i < examples; i++) { | |
const arr = Array(getRandomInt(1, 6)).fill(null); | |
for (var j = 0; j < arr.length; j++) { | |
arr[j] = getRandomInt(-50, 150); | |
} | |
console.log(`[${arr.map(a => a + '%').join(', ')}] => `, perf(arr).toFixed(2) + '%'); | |
} | |
} |
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
<button onClick={() => { | |
window.ethereum.request({ | |
method: 'wallet_addEthereumChain', | |
params: [ | |
{ | |
chainId: '0x1a4', | |
chainName: 'SanR L2 Chain', | |
nativeCurrency: {name: 'SAN', symbol: 'SAN', decimals: 18}, | |
rpcUrls: ['https://l2.144.76.93.41.nip.io/'], | |
blockExplorerUrls: ['http://144.76.93.41:4001/'], |
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
ОфертаофертаШЕРИНГА САМОКАТОВ WHOOSH | |
Публичная | |
ПУБЛИЧНАЯ ОФЕРТА | |
о заключении Договора о предоставлении права использования Платформы микромобильности Whoosh (Условия использования сервиса) | |
Место заключения договора: г. Москва, Российская Федерация | |
(редакция от «01» мая 2021 года) |
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
Company | |
FAQ Парковки Вакансии Новости Контакты | |
En | |
Офертаконфиденциальности | |
ШЕРИНГА САМОКАТОВ WHOOSH | |
Политика | |
Мы делаем все процессы сервиса Whoosh максимально прозрачными, в том числе то, как мы собираем, используем и защищаем персональную информацию своих пользователей. В этом документе — Политике конфиденциальности, описывается, как обрабатываем персональные данные, которые получаем при взаимодействии пользователей с нашим сайтом, мобильными приложениями и иными службами (всё вместе мы будем называть это — Сервис). Пожалуйста, с полными условиями использования Whoosh ознакомьтесь в Оферте сервиса. | |
Мы оставляем за собой право время от времени изменять настоящую Политику конфиденциальности. Если в этот документ будут внесены изменения, обновленная версия сразу же будет опубликована на сайте и в мобильных приложениях Сервиса, в случае существенных изменений пользователям будет направлено уведомление по электронной почте или другим способом. |
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
import {ethers} from 'ethers'; | |
import {cloneDeepWith} from 'lodash'; | |
export default function logBNs(arg) { | |
function customizer(value) { | |
if (Array.isArray(value)) { | |
const arr = []; | |
Object.keys(value).forEach(key => { |
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
export default [ | |
{ | |
inputs: [ | |
{ | |
internalType: 'string', | |
name: 'name', | |
type: 'string', | |
}, | |
{ | |
internalType: 'string', |
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
/* global module, __dirname */ | |
/* eslint-disable import/no-commonjs, import/no-nodejs-modules */ | |
const path = require('path'); | |
module.exports = { | |
globals: { | |
require: 'readonly', | |
process: 'readonly', |
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
const {exec} = require('child_process'); | |
setInterval(() => { | |
exec('tput bel', (error, stdout, stderr) => { | |
if (error) { | |
console.log(`error: ${error.message}`); | |
return; | |
} | |
if (stderr) { | |
console.log(`stderr: ${stderr}`); | |
return; |