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
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| key = open('key.bin', 'rb').read() | |
| iv = open('iv.bin', 'rb').read() | |
| shard1 = open('shard1.bin', 'rb').read() | |
| ciphertext = shard1 | |
| # Initialize AES-GCM cipher | |
| cipher = Cipher( |
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
| use cosmwasm_std::{Response, StdResult}; | |
| use cw_storage_plus::Item; | |
| use sylvia::{contract, entry_points}; | |
| use sylvia::types::{InstantiateCtx, QueryCtx}; | |
| use crate::response::CounterResponse; | |
| pub struct Counter { | |
| pub(crate) count: Item<'static, u64>, |
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
| import os | |
| import sys | |
| import pymysql | |
| import pymysql.cursors | |
| import requests | |
| from lxml import html | |
| DB_PASS = os.environ.get('DB_PASS') | |
| DB_NAME = os.environ.get('DB_NAME') |
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 Web3 = require('web3'); | |
| const web3 = new Web3(new Web3.providers.WebsocketProvider(process.env.ENDPOINT)); | |
| const transferSignature = Web3.utils.keccak256("Transfer(address,address,uint256)"); | |
| // Listen for Transfer events from all contracts | |
| web3.eth.subscribe('logs', { | |
| topics: [transferSignature] | |
| }, (error, event) => { | |
| if (error) { |
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
| from telethon import TelegramClient, events, sync | |
| import numpy as np | |
| import asyncio | |
| import random | |
| from telethon.tl.functions.account import UpdateProfileRequest | |
| from telethon.tl.functions.messages import SendReactionRequest | |
| from telethon.tl.types import IpPort, ReactionEmoji | |
| import torch | |
| import os | |
| import sys |
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
| { | |
| "minimum-stability":"dev", | |
| "autoload": { | |
| "psr-4": { | |
| "Ethereum\\": "src/" | |
| } | |
| }, | |
| "repositories": [ | |
| { | |
| "type": "git", |
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
| /* | |
| _// _// _// | |
| _// _// _// _// | |
| _// _// _/_/ _/ _// _/// _// _//_// _//_/ _// _//// _// | |
| _// _// _// _// _// _// _// _// _// _// _// _// _/ _// _// _/ _// | |
| _// _// _// _// _// _//_// _// _// _// _/// _/ _// _/// _///// _// | |
| _// _//_// _// _// _// _// _// _// _// _// _// _// _// _//_/ | |
| _//// _// _/// _// _// _/// _// _///_/// _// _// _// _// _//// | |
| _// _// |
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
| struct Foo { | |
| value: String, | |
| } | |
| impl Foo { | |
| #[cfg(not(target_os = "macos"))] | |
| fn xxx(&mut self) { | |
| self.value.push_str(".not macOS.") | |
| } |
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
| pragma solidity ^0.8.0; | |
| interface IERC20 { | |
| function totalSupply() external view returns (uint256); | |
| function balanceOf(address account) external view returns (uint256); | |
| function allowance(address owner, address spender) external view returns (uint256); | |
| function transfer(address recipient, uint256 amount) external returns (bool); | |
| function approve(address spender, uint256 amount) external returns (bool); |
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
| [package] | |
| name = "lola-nft" | |
| version = "0.1.4" | |
| authors = ["Nikita Kuznetsov <[email protected]>"] | |
| edition = "2018" | |
| [dependencies] | |
| near-sdk = "4.0.0" | |
| # near-sdk-sim = "4.0.0-pre.9" | |
| near-contract-standards = "4.0.0" |