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
#!python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup | |
from colorama import init, Fore, Back, Style | |
import sys | |
import os | |
#get the price |
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
from PyQt5.QtGui import * | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import * | |
from MainWindow import Ui_MainWindow | |
import json | |
import requests | |
class MainWindow(QMainWindow, Ui_MainWindow): | |
def __init__(self, *args, **kwargs): |
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 os | |
import sys | |
import hmac | |
import base64 | |
import hashlib | |
import argparse | |
def checksum(hash, seed=None): | |
hashs = { | |
"md5": hashlib.md5, |
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
from selenium import webdriver | |
import getpass | |
import time | |
username = "username" | |
password = getpass.getpass("Password:") | |
problem = 'TEST' | |
code = """ |
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 tkinter as tk | |
from tkinter import ttk | |
import urllib.request | |
import json | |
import time | |
def get_luno(): | |
# to change ticker pair, look at here https://api.mybitx.com/api/1/tickers | |
req = urllib.request.urlopen("https://api.mybitx.com/api/1/ticker?pair=XBTMYR") | |
x = json.loads(req.read().decode("utf-8")) |
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 sys | |
try: | |
import aiml | |
except ImportError: | |
print('[!] Failed to import the module') | |
try: | |
select = raw_input('[*] Attempt to auto-install aiml? [Y/n') | |
except KeyboardInterrupt: | |
print('\n[!] User Cancel') | |
sys.exit(5) |
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
from smtplib import SMTP as smtp | |
import json | |
def sendmail(sender_add, reciever_add, msg, password): | |
server = smtp('smtp.gmail.com:587') | |
server.starttls() | |
server.login(sender_add, password) | |
server.sendmail(sender_add, reciever_add, msg) | |
print("Mail sent succesfully....!") |
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 geocoder | |
t=input("enter the location:") | |
g = geocoder.arcgis(t) | |
print(g.latlng) |
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 os | |
import argparse | |
from cryptography.fernet import Fernet | |
class Crypt: | |
def __init__(self): | |
# can be generated Fernet.generate_key() |
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
def printsudoku(sudoku): | |
print("\n\n") | |
for i in range(len(sudoku)): | |
line = "" | |
if i == 3 or i == 6: | |
print("---------------------") | |
for j in range(len(sudoku[i])): | |
if j == 3 or j == 6: | |
line += "| " | |
line += str(sudoku[i][j])+" " |