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
| { | |
| "9 payment service Bank": "120001", | |
| "AB MICROFINANCE BANK": "090270", | |
| "ABBEY MORTGAGE BANK": "070010", | |
| "ABOVE ONLY MICROFINANCE BANK": "090260", | |
| "ABU MICROFINANCE BANK": "090197", | |
| "ACCESS BANK": "000014", | |
| "ACCESSMONEY": "100013", | |
| "ACCION MFB": "090134", | |
| "ADDOSSER MFBB": "090160", |
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 json | |
| import requests | |
| from bs4 import BeautifulSoup | |
| def fetch_coingecko_html(): | |
| # make a request to the target website | |
| r = requests.get("https://www.coingecko.com") | |
| if r.status_code == 200: | |
| # if the request is successful return the HTML content |
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 main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/portto/solana-go-sdk/client" | |
| "github.com/portto/solana-go-sdk/client/rpc" | |
| "github.com/portto/solana-go-sdk/common" | |
| "github.com/portto/solana-go-sdk/program/sysprog" | |
| "github.com/portto/solana-go-sdk/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
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
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 face_recognition | |
| import base64 | |
| import io | |
| import os | |
| import numpy as np | |
| from imageio import imread | |
| def get_face_encoding(image): | |
| face_encoding = face_recognition.face_encodings(image)[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
| # validate email addresses | |
| def validate_email(email): | |
| pattern = r"(^(?!-|\.)([a-zA-Z0-9._%+-]+)@(?!-)[a-zA-Z0-9.-]+(?<=[a-zA-Z0-9])\.[a-zA-Z]{2,}$)" | |
| if re.match(pattern, email): | |
| return True | |
| else: | |
| return False | |
| if __name__ == "__main__": |
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 base64 | |
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.hazmat.primitives import hashes | |
| from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC | |
| from cryptography.fernet import Fernet | |
| def encrypt_text(text, salt): | |
| def generate_key(master, salt): | |
| kdf = PBKDF2HMAC( | |
| algorithm=hashes.SHA512(), |
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 matplotlib.pyplot as plt | |
| def spot_formula(x, y=100): | |
| return (1 + (x / 100)) * y | |
| def usdt_m_formula(x, y=100): | |
| return (1 + (x / 50)) * y | |
| def coin_m_formula(x, y=100): | |
| return ((1 + (x / 100)) ** 2) * y |
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 json | |
| import requests | |
| if __name__ == "__main__": | |
| r = requests.get( | |
| "https://ledger-ecom-cdn-prod.s3-eu-west-1.amazonaws.com/website/assets/website_input.json") | |
| stakable = set() | |
| for coin in r.json(): | |
| if coin["staking_live"] or coin["staking_ext"]: | |
| stakable.add(coin["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
| from flask import * | |
| from LoginRadius import LoginRadius as LR | |
| app = Flask(__name__) | |
| app.config["SECRET_KEY"] = "SECRET_KEY" | |
| LR_AUTH_PAGE = "https://<APP_NAME>.hub.loginradius.com/auth.aspx?action={}&return_url={}" | |
| LR.API_KEY = "LR_API_KEY" | |
| LR.API_SECRET = "LR_API_SECRET" | |
| loginradius = LR() |
NewerOlder