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
# Modify [...]lib\site-packages\tornado\platform\asyncio.py on Windows with 3.8.x so asyncio works with Tornado | |
# Nick note 12/27/2019: still needed to check for sys.platform == 'win32' with 3.8.1 upgrade | |
"""Bridges between the `asyncio` module and Tornado IOLoop. | |
.. versionadded:: 3.2 | |
This module integrates Tornado with the ``asyncio`` module introduced | |
in Python 3.4. This makes it possible to combine the two libraries on | |
the same event loop. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Date | Movie | IMDB URL | IMDB Score | Length | Attendees | Mood | Staff Notes |
---|---|---|---|---|---|---|---|
2020-08-27 00:00:00 | Dunkirk | https://m.imdb.com/title/tt5013056/?ref_=m_ttls_tt_20 | 7.9 | 106 | 18 | 😓 | Bane flies a plane ✈ |
2020-08-26 00:00:00 | Inception | https://m.imdb.com/title/tt1375666/?ref_=m_ttls_tt_21 | 8.8 | 148 | 27 | ⏰ | Enjoyed watching next to this spinning top. |
2020-08-25 00:00:00 | Ready Player One | https://m.imdb.com/title/tt1677720/?ref_=m_ttls_tt_22 | 7.5 | 140 | 11 | 🥽 | Charlie and the Chocolate Factory: 2040 |
2020-08 |
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
from __future__ import annotations | |
from dataclasses import dataclass, astuple | |
from itertools import cycle | |
from typing import List | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
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
from dataclasses import dataclass | |
@dataclass | |
class Pixel: | |
red: int | |
green: int | |
blue: int | |
# alpha: float = 1 | |
pixel = Pixel(255,0,0) |
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
resized = resize("checkers.jpg", 50) | |
print(resized.shape) | |
plt.imshow(resized) # can use cv2.imshow("name", image) |
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
from PIL import Image | |
def resize(fp: str, scale: Union[float, int]) -> np.ndarray: | |
""" Resize an image maintaining its proportions | |
Args: | |
fp (str): Path argument to image file | |
scale (Union[float, int]): Percent as whole number of original image. eg. 53 | |
Returns: |
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
""" resize.py | |
""" | |
from __future__ import annotations | |
import os | |
import glob | |
from pathlib import Path | |
import sys | |
import click |
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 cv2 | |
def resize(fp: str, scale: Union[float, int]) -> np.ndarray: | |
""" Resize an image maintaining its proportions | |
Args: | |
fp (str): Path argument to image file | |
scale (Union[float, int]): Percent as whole number of original image. eg. 53 | |
Returns: |