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 { ethers } from 'ethers'; | |
async function transferTokens() { | |
// Replace with your private key | |
const privateKey = 'YOUR_PRIVATE_KEY'; | |
// Replace with the recipient address | |
const toAddress = 'TO_ADDRESS'; | |
// Replace with the amount of tokens to transfer |
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 cv2 | |
import numpy as np | |
# Load the image | |
image = cv2.imread('/Users/sametsahin/Downloads/scuba_diver.jpeg') | |
# Define all kernels | |
kernels = { | |
'Sobel Vertical': np.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]), | |
'Sobel Horizontal': np.array([[-1, -2, -1], [0, 0, 0], [1, 2, 1]]), |
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 cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
def slice_matrix(matrix, row_start, col_start, size): | |
col_end = col_start + size | |
row_end = row_start + size | |
return [row[col_start:col_end] for row in matrix[row_start:row_end]] |
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 'package:flutter/services.dart'; | |
import 'package:volt/models/volt_api/create_paybis_request_model.dart'; | |
import 'package:volt/models/volt_api/crypto_wallet_address.dart'; | |
import 'package:volt/models/volt_api/get_paybis_quote_request_model.dart'; | |
import 'package:volt/services.dart'; | |
class PaybisSDK { | |
static const _paybisMethodChannel = MethodChannel( | |
"finance.voltage/paybis_method_channel", | |
); |
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
{ | |
"id": "id", | |
"walletAddress": "walletAddress", | |
"eoaAddress": "eoaAddres", | |
"points": 10, | |
"referralCode": "referralCode", | |
"pointsLastUpdatedAt": "2022-04-04T23:46:20.469Z", | |
"updatedAt": "2024-04-04T23:41:28.673Z", | |
"walletAgeInDays": 100, | |
"twitterAccountId": "55", |
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 { | |
AIRDROP_BIGQUERY_V3_POOLS_LIQUIDITY, | |
VOLTAGE_EXCHAGE_V3_SUBGRAPH_URL, | |
} from "../constants"; | |
import { getAllPositionSnapshotsBetweenDatesQuery } from "../graph_ql/queries"; | |
import { | |
V3PoolPosition, | |
V3PoolPositionSnapshot, | |
V3PoolPositionSnapshots, | |
} from "../graph_ql/types"; |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Staging", | |
"request": "launch", | |
"type": "dart", | |
"args": [ | |
"--flavor", | |
"staging" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[ | |
{ | |
"id_map": 2, | |
"id_workspace": 1, | |
"id_model": 3, | |
"name": "Kocaeli Üniversitesi", | |
"subscribes": [], | |
"locations": [ | |
{ | |
"id_location": 2, |
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 admin from "firebase-admin"; | |
import fs from "fs"; | |
import pLimit from "p-limit"; | |
import * as XLSX from "xlsx"; | |
const serviceAccount = JSON.parse( | |
fs.readFileSync("firebase_staging_creds.json", "utf8") | |
); | |
admin.initializeApp({ |