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
#!/usr/bin/env python | |
# coding: utf-8 | |
## =============== REQUIREMENTS =============== ## | |
## rmrl: https://github.com/naturale0/rmrl | |
## rsync (for rM): | |
## - https://github.com/JBBgameich/rsync-static/releases/download/continuous/rsync-arm | |
## - https://www.reddit.com/r/RemarkableTablet/comments/hetyfa/comment/fvu1fy3/?utm_source=share&utm_medium=web2x&context=3 | |
# In[36]: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# <h1>Table of Contents<span class="tocSkip"></span></h1> | |
# <div class="toc"><ul class="toc-item"></ul></div> | |
# In[36]: | |
import os |
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
pkg update | |
pkg install python build-essential freetype libpng libzmq libcrypt libjpeg-turbo libxml2 libxslt | |
pip install bs4 requests lxml | |
curl -LO https://its-pointless.github.io/setup-pointless-repo.sh | |
bash setup-pointless-repo.sh | |
pkg install numpy scipy | |
pip install matplotlib jupyter |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 itertools | |
from torchtext.experimental.datasets import TextClassificationDataset | |
from torchtext.vocab import build_vocab_from_iterator | |
from torchtext.experimental.functional import sequential_transforms | |
from torchtext.experimental.datasets import IMDB | |
from torchtext.data.utils import get_tokenizer | |
from torch.nn.utils.rnn import pack_padded_sequence | |
def build_char_vocab(data, index, bow="<w>", eow="</w>"): |
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 re | |
import requests | |
import datetime as dt | |
from bs4 import BeautifulSoup | |
# Crawl DxOMark Mobile data | |
class DxOCrawler(): | |
def __init__(self): | |
self.baseurl = "https://www.dxomark.com/category/mobile-reviews/page" | |
self.links = [] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder