- Install FFMPEG
- Setup rtmp application for restream
- Test
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
// put breakpoint at etherscan VM:280 | |
// use "res" variable | |
res.askInfo.map((i, index) => ({ ...i, tokenId: res.tokenIds[index], priceBNB: Number(i.price) / 1e18, link: `https://pancakeswap.finance/nfts/collections/0x0a8901b0E25DEb55A87524f0cC164E9644020EBA/${res.tokenIds[index]}` })).sort((a,b) => Number(a.price) - Number(b.price)).filter(i => i.priceBNB == 5) |
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
// SPDX-License-Identifier: MIT | |
// Adapted from World of Women: https://etherscan.io/token/0xe785e82358879f061bc3dcac6f0444462d4b5330#readContract | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract AvatarNFT is ERC721, ERC721Enumerable, Ownable { |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// CAUTION | |
// This version of SafeMath should only be used with Solidity 0.8 or later, | |
// because it relies on the compiler's built in overflow checks. | |
/** | |
* @dev Wrappers over Solidity's arithmetic operations. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. |
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
// for https://cloudflare-ipfs.com/ipfs/Qmf3ysov9xRpBJwuCwAGmWT99UwGPV3bjoSo2uQEpfPBWK/pictures listing | |
const LENGTH = 5000 | |
// MANUALLY select temp1 as a <tbody> OR: | |
const tbody = document.querySelector('tbody') | |
const arr = Array(LENGTH + 1).fill(null).reduce((acc, _, index) => [...acc, tbody.children.item(index)], []) | |
// LENGTH can be longer than the number of elements, so we filter null |
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
// SPDX-License-Identifier: MIT | |
/** This example code is designed to quickly deploy an example contract using Remix. | |
* If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough | |
* You will need testnet ETH and LINK. | |
* - Kovan ETH faucet: https://faucet.kovan.network/ | |
* - Kovan LINK faucet: https://kovan.chain.link/ | |
*/ | |
pragma solidity ^0.6.0; |
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
// A. So we have a React component | |
// B. that is a modal popup | |
// C. it has two buttons: Apply and Cancel | |
// D. when you press cancel, it hides itself | |
// E. when you press Apply, the function callback | |
// F. that was passed through props, is called | |
// G. Also, popup can draw inherited HTML fetched from props.children | |
// H. Bonus question! It looks wrong. | |
// Please add the dark overlay over background, and make the buttons more in style with the rest of the project |
I hereby claim:
- I am caffeinum on github.
- I am caffeinum (https://keybase.io/caffeinum) on keybase.
- I have a public key ASBvoq7v8fAoze8SlVQuWhuYEG2niXFWG3IdSD8o7J7NlQo
To claim this, I am signing this object:
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 bitcoin = require('bitcoinjs-lib') // version @3.3.2, ver4 won't work | |
const request = require('request-promise-native') | |
const net = process.env.NETWORK === 'testnet' | |
? bitcoin.networks.testnet | |
: bitcoin.networks.bitcoin | |
const API = net === bitcoin.networks.testnet | |
? `https://test-insight.swap.online/insight-api` | |
: `https://insight.bitpay.com/api` |