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
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
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 jwt = require('jsonwebtoken') | |
const fs = require('fs') | |
const appleId = 'com.your.service.id.here' | |
const keyId = 'XXXXXXXXXX' // 10 chars, your generated apple key id | |
const teamId = 'ZZZZZZZZZZ' | |
const privateKey = fs.readFileSync('YOUR-PATH-HERE.p8') | |
const secret = jwt.sign( | |
{ |
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
// copied from https://etherscan.io/address/0xf44066d120ca92e7f070c8b895ca29738f48fe41#code | |
const NFTBlacklist = [ | |
17, 24, 34, 41, 52, 69, 71, 74, 77, 98, 105, 127, 146, 153, 162, 166, 178, | |
198, 204, 214, 216, 255, 280, 283, 319, 332, 337, 339, 355, 358, 359, 361, | |
367, 369, 375, 377, 380, 389, 392, 398, 400, 409, 421, 432, 438, 451, 453, | |
459, 484, 487, 491, 497, 498, 501, 503, 507, 508, 520, 521, 547, 552, 559, | |
561, 563, 565, 566, 568, 575, 579, 589, 591, 595, 602, 607, 608, 614, 637, | |
657, 676, 679, 685, 687, 692, 693, 694, 701, 705, 713, 727, 741, 743, 745, | |
748, 754, 765, 770, 772, 777, 780, 784, 785, 786, 789, 790, 798, 806, 807, | |
811, 814, 822, 827, 828, 832, 835, 844, 852, 861, 866, 869, 873, 878, 882, |
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 { | |
Qrcode, | |
RenderQrcodeModalProps, | |
WalletService, | |
WalletServiceRow, | |
} from '@walletconnect/react-native-dapp'; | |
<View > | |
<Text>Show QR code:</Text> | |
<Switch |
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 | |
// An example of a consumer contract that relies on a subscription for funding. | |
pragma solidity ^0.8.6; | |
import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol"; | |
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; | |
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract MoonDAOWinnerV2 is Ownable, VRFConsumerBaseV2 { |
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
#!/usr/bin/env python | |
import roslib | |
roslib.load_manifest("sensor_msgs") | |
roslib.load_manifest("message_filters") | |
roslib.load_manifest("rxtools") | |
import rospy | |
import rxtools | |
import rxtools.rosplot | |
import sys |