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 wait = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const timeout = (p, ms) => Promise.race([p, wait(ms).then(() => { | |
throw new Error("Timeout after " + ms + " ms"); | |
})]); | |
export const pubsubFunction: CloudEventFunction<{ | |
message: { data: string }; | |
}> = async () => { | |
timeout(checkShellTransactions(), 3 * 60 * 1000) // 3 minutes ms | |
}; |
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
# Copyright 2022, Lefebvre Dalloz Services | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
// copy from: https://github.com/techbandorg/web3ConnectorNPM/blob/86f5badf121b1e592da82426004d13ba8e8d7d0a/src/walletHooks/component/hooks/useSignMessage.tsx | |
import { useState, useEffect } from "react"; | |
import { useWeb3React } from "@web3-react/core"; | |
import { ethers } from "ethers"; | |
import Web3 from "web3"; | |
export const useSignMessage = () => { | |
const { library, account } = useWeb3React(); | |
let web3 = new Web3(library?.provider); |
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 | |
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) | |
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 |
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
useEffect(() => { | |
const canvas = document.createElement('canvas'); | |
const context = canvas.getContext('2d', { | |
alpha: false, | |
}); | |
const colorSampling = () => { | |
const { videoWidth, videoHeight } = videoRef.current; | |
context.drawImage(videoRef.current, 0, 0, videoWidth, videoHeight); |
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.4; | |
import "erc721a/contracts/ERC721A.sol"; | |
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract WEARKey is ERC721A, Ownable { | |
// events | |
event WhitelistMint(address sender, uint256 count); |
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.4; | |
import "erc721a/contracts/ERC721A.sol"; | |
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract WEARKey is ERC721A, Ownable { | |
// events | |
event WhitelistMint(address sender, uint256 count); |
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 "hardhat/console.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/utils/Context.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; |
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
Senior Full Stack Developer(45K - 50K) | |
Job Responsibilities | |
• Participate in system design, development, testing and implementation of website / mobile app | |
• Work closely with PM, developer and designer to meet the requirement and project schedule | |
• Ensure system performance, security and coding quality meet PCI standard | |
Requirements | |
• Minimum 4 years' of progressively related experience in relevant fields | |
• Proficiency in Node.js, React Native, React.js development |
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
+ 35.221.139.74:3571 docker run --gpus all -w /root/app -v /home/indiejoseph/a-society-nft:/root/app nytimes/blender:3.0-gpu-ubuntu18.04 blender -b master.blend -P render.py -- --only-glasses --from 8 --to 200 | |
+ 35.221.139.74:3690 docker run --gpus all -w /root/app -v /home/indiejoseph/a-society-nft:/root/app nytimes/blender:3.0-gpu-ubuntu18.04 blender -b master.blend -P render.py -- --only-glasses --from 501 --to 700 | |
+ 35.221.139.74:1028 docker run --gpus all -w /root/app -v /home/indiejoseph/a-society-nft:/root/app nytimes/blender:3.0-gpu-ubuntu18.04 blender -b master.blend -P render.py -- --only-glasses --from 401 --to 500 | |
+ 35.221.139.74:3690 docker run --gpus all -w /root/app -v /home/indiejoseph/a-society-nft:/root/app nytimes/blender:3.0-gpu-ubuntu18.04 blender -b master.blend -P render.py -- --only-glasses --from 2401 --to 2500 | |
* 35.221.139.74:3690 docker run --gpus all -w /root/app -v /home/indiejoseph/a-society-nft:/root/app nytimes/blender:3.0-gpu-ubuntu18.04 blender -b master.blend -P render.py -- |