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
| # -*- coding: utf-8 -*- | |
| import random | |
| try: | |
| from urllib.request import urlopen | |
| except ImportError: | |
| from urllib2 import urlopen | |
| url = 'https://raw.githubusercontent.com/AntJanus/programmers-proverbs/master/README.md' | |
| response = urlopen(url) |
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
| # API is not ready yet | |
| import requests | |
| token = 'put_token_here' | |
| headers = {'Authorization': f'Token {token}'} | |
| # events | |
| url = 'https://againstallodds.me/api/events/england/premier_league/' | |
| r = requests.get(url, headers=headers) |
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 argparse | |
| import glob | |
| import os | |
| import subprocess | |
| from bs4 import BeautifulSoup | |
| import requests | |
| import zipfile | |
| BASE_URL = 'https://www.vpnbook.com/freevpn' |
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
| #!/bin/bash | |
| # Change keyboard layout | |
| sudo raspi-config | |
| # Remove useless software | |
| sudo apt-get remove --purge nodered -y | |
| sudo apt-get remove --purge wolfram-engine -y | |
| sudo apt-get remove --purge libreoffice* -y | |
| sudo apt-get remove --purge scratch minecraft-pi -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 numpy as np | |
| import cv2 | |
| import time | |
| from mss import mss | |
| from PIL import Image | |
| '''Macbook have a bug about box's dimensions, can be just multiple of 16 | |
| but this bug will be fix soon in the next release''' | |
| box = { "top": 10, "left": 10, "width": 400, "height": 320} |
NewerOlder