And English is a Work in Progress ⌛
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.21; | |
import {VRFCoordinatorV2Interface} from "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; | |
import {VRFConsumerBaseV2} from "@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.sol"; | |
import {ConfirmedOwner} from "@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwner.sol"; | |
// Fuji Testnet: 0xb9477bfbCAe729643b8251404Fa6E4356bB3d9A3 | |
contract RandomNumber is VRFConsumerBaseV2 { | |
VRFCoordinatorV2Interface COORDINATOR; |
Ok, if you're a newbie like me this is the process (After enable the termux storage permissions):
startarch
tar zcf mirrorlist.tar.gz /etc/pacman.d/
cp /etc/pacman.conf storage/downloads/pacman.conf
cp /etc/pacman.d/mirrorlist storage/downloads/mirrorlist
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 { join } from 'path' | |
import { get } from 'lodash' | |
import { Storage } from '@google-cloud/storage' | |
import { BUCKET_NAME } from '../constants' | |
import { base64MimeType } from '../utils' | |
const gcloudPathKey = join(__dirname, '../gcloud-key.json') | |
const storage = new Storage({ | |
projectId: 'my-project-id', |
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
var bootState = { | |
preload: function () { | |
this.game.load.image('loading', 'assets/loading.png'); //Load images to show progress bar in the next state | |
this.game.load.image('loadingborder', 'assets/loadingborder.png'); | |
this.game.stage.backgroundColor = '#A5DEF1'; //Change background color if you want | |
}, | |
create: function () { | |
//Configure plugins like better transitions | |
this.game.stateTransition = this.game.plugins.add(Phaser.Plugin.StateTransition); | |
this.game.stateTransition.configure({ |
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
//By https://codedump.io/share/Fd3DmsM6UAeS/1/creating-a-blob-from-a-base64-string-in-javascript | |
//Example | |
//var blob = b64toBlob(b64Data, contentType); | |
//var blobUrl = URL.createObjectURL(blob); | |
function b64toBlob(b64Data, contentType, sliceSize) { | |
contentType = contentType || 'image/png'; | |
sliceSize = sliceSize || 512; | |
var byteCharacters = atob(b64Data); | |
var byteArrays = []; |
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 React, { useEffect } from 'react' | |
import { | |
Text | |
} from 'react-native' | |
import useSignalR from './useSignalR' | |
import { getCounterAndToken } from '../services/api' | |
import { hideError, showErrorAndRetryAction } from '../services/common' | |
/** | |
* A hook for getting realtime updates of a counter |
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 { useInfiniteQuery } from '@tanstack/react-query'; | |
import { MarketplaceItem } from '../models'; | |
import { getMarketplaceItems } from '../services'; | |
export type UseMarketplaceItemsProps = { | |
query: string; | |
initialData?: MarketplaceItem[]; | |
from?: number; | |
size?: number; |
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
// This is optional, only for building your own npm packages using those polyfills | |
// This is not useful to fix issues from external packages like web3 dependencies | |
import { Buffer } from "buffer" | |
import * as process from "process" | |
globalThis.Buffer = Buffer as unknown as BufferConstructor; | |
globalThis.process = process as unknown as NodeJS.Process; | |
// So only use this alternative if you don't want to use the below patch fix for RemixJS! |
NewerOlder