This list may grow each year with either new versions or patches. Enjoy!
Following is an example related to the usage of the various ignore capabilities.
import re | |
import requests | |
from bs4 import BeautifulSoup | |
class ScrapeMarketWatch: | |
def __init__(self, stock: str): | |
self.stock = stock.strip().lower() | |
self.url = 'https://www.marketwatch.com/investing/stock/' + self.stock + '?mod=over_search' | |
def get_page(self): |
from selenium import webdriver | |
import time | |
from selenium.webdriver import ActionChains | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
from selenium.common.exceptions import TimeoutException | |
For USB: https://gist.github.com/matijagrcic/564a17f3474c65b54bcc
Create a Setup USB drive from https://www.microsoft.com/en-us/software-download/windows10
Create a file named PID.txt in the Sources directory, with the following contents:
[PID] Value=VK7JG-NPHTM-C97JM-9MPGT-3V66T
Boot from this USB drive
For USB: https://gist.github.com/matijagrcic/564a17f3474c65b54bcc
Create a Setup USB drive from https://www.microsoft.com/en-us/software-download/windows10
Create a file named PID.txt in the Sources directory, with the following contents:
[PID] Value=VK7JG-NPHTM-C97JM-9MPGT-3V66T
Boot from this USB drive
# native Python progress bar without using any library | |
from time import sleep | |
def progress_bar(percent=0, width=30): | |
left = width * percent // 100 | |
right = width - left | |
print('\r[', '#' * left, ' ' *right, ']', f'{percent: .0f}%', sep='', end='', flush=True) | |
if __name__ == "__main__": |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
def print_confusion_matrix(confusion_matrix, class_names, figsize = (10,7), fontsize=14): | |
"""Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap. | |
Arguments | |
--------- | |
confusion_matrix: numpy.ndarray |
import numpy as np | |
import theano | |
import theano.tensor as T | |
class RAE(object): | |
def __init__(self, input, rng, d, W=None, b=None, U=None, c=None): | |
dv = d | |
dh = d * 2 | |
self.dv = dv |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
# Command to download file via aria2c using magnet link. | |
# See website and documentation at https://aria2.github.io | |
# -d specifies the directory to store the downloaded file | |
# --seed-time=0 disables seeding after download has completed | |
aria2c -d ~/Downloads --seed-time=0 "magnet_link_here" |