Skip to content

Instantly share code, notes, and snippets.

x011 /
Created July 18, 2023 14:25 — forked from andelf/
Get TRC20 balance and Transfer TRC20 tokens
import requests
import base58
import base64
from pprint import pprint
ADDRESS = "T....your address"
PRIV_KEY = 'hex private key'
CONTRACT = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" # USDT
View credit-card-payment-form.markdown

Credit Card Payment Form

Wanted to work with some masking so made a payment form so, using vanilla JS and the imask.js library, made a fairly simply payment form that uses regex patterns to detect the credit card type as the user is inputting values and properly applies the relevant spacing associated with that brand. Also wanted to do a smidge of style flair so made a simple SVG card that changes as the user fills out the form.

A Pen by Adam Quinlan on CodePen.


View gist:088e2f3a5e3a13b45602d71b4da59a23
teste 123 0x03fae834961ba15203a0f493dc47b6a41090cabf5892b63fbb2d20c9c59a2468 00000000
View gist:874b0f15a31720267201fb6c4bc923de
m/44'/60'/0'/0/0 0xfBC4f0fDF6eFC1A18481C23D6C9149b06019b0A0 0x6af883f97a80a3e93b4f67ec0a464dedf67b3fb991dbcd47ee37da89ab002701
m/44'/60'/0'/0/1 0xF228d2A5AD066f79c71ea8f717F90C3eBce13F45 0x376607636d7e1d2b21845593bff6b52c329853012a5b05eca8738362cd9b4950
m/44'/60'/0'/0/2 0x7e8885361C354d7AA6Fc3CAbE72058d61fA3a4aD 0x549e8f591a67ad74015f1dad862bd3f4f67f27eb3e0e6b7106c4d3461bc2ec89
m/44'/60'/0'/0/3 0xB3CA35156fcc44b4A01c05A2Aef11dd54796bb79 0x6ece26233bfb629c595b7d7fca65bb51fc847dc4caa3e5cae777e6a12d8b6ced
m/44'/60'/0'/0/4 0x8Aa523a8776807d1D69EfB8A35A2d192F72D336D 0xe7209f5d049e919cfa2703db35b39282fa0899ad32bf4e59c29d2f27118b840c
m/44'/60'/0'/0/5 0x513656211691393a181c85d7c6b22C38cdBb43Ac 0x37f2eb799ef113d93891827f74b9d3f3e92824b7492238660bb45e8efab9ba60
m/44'/60'/0'/0/6 0x18D72546E34dEcE48B7b07dd0a203daD9DB0e8B3 0x17a1d6d24a1611d59da1e867cde8fec46ea5439ac4a54fab271b524853a35a13
m/44'/60'/0'/0/7 0x7EE2F82258e48C36a5540191540d087a77165F62 0xc9b8b52bf896455aaccb495b785912b55a6d7c96c189e640c
x011 /
Last active August 8, 2022 18:50
Upload files to using python
from requests import Session
import mimetypes
from pathlib import Path
Coded for
def get_mime(f):
x011 /
Created May 16, 2020 22:27
Generate m3u playlists from folders
import glob
all_dirs = glob.glob("/path/to/dir/with/subfolders/*/") # path to dir containing subdirs with musics
for mdir in all_dirs:
dir_name = mdir.split("/")[-2]
playlist_path = f'{mdir}{dir_name}.m3u'
x011 /
Last active August 14, 2022 19:37
Gmail Attachment Downloader 2020
# Made for:
import os
from imbox import Imbox # pip install imbox
import traceback
# enable less secure apps on your google account
host = ""
Project: curinga
Time: 2020/03/07 01:37
import win32api
import win32print
import traceback
from tkinter.filedialog import askopenfilename
from tkinter import *
If you have problems importing PyQt5, just comment:
# from PyQt5.QtWidgets import QApplication
# all def center(): ...
# center(rootWin)
It just centers the window on screen
package dk.meznik.jan.encrypttext;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;