We can't make this file beautiful and searchable because it's too large.
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
show_id,type,title,director,cast,country,date_added,release_year,rating,duration,listed_in,description | |
81145628,Movie,Norm of the North: King Sized Adventure,"Richard Finn, Tim Maltby","Alan Marriott, Andrew Toth, Brian Dobson, Cole Howard, Jennifer Cameron, Jonathan Holmes, Lee Tockar, Lisa Durupt, Maya Kay, Michael Dobson","United States, India, South Korea, China","September 9, 2019",2019,TV-PG,90 min,"Children & Family Movies, Comedies","Before planning an awesome wedding for his grandfather, a polar bear king must take back a stolen artifact from an evil archaeologist first." | |
80117401,Movie,Jandino: Whatever it Takes,,Jandino Asporaat,United Kingdom,"September 9, 2016",2016,TV-MA,94 min,Stand-Up Comedy,"Jandino Asporaat riffs on the challenges of raising kids and serenades the audience with a rousing rendition of ""Sex on Fire"" in his comedy show." | |
70234439,TV Show,Transformers Prime,,"Peter Cullen, Sumalee Montano, Frank Welker, Jeffrey Combs, Kevin Michael Richardson, Tania Gunadi, Josh Keaton, Steve |
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 functools | |
import inspect | |
from typing import TypeVar, Callable | |
RetT = TypeVar("RetT") | |
def replace_code_and_keep_signature(func: Callable[..., RetT]) -> Callable[..., RetT]: | |
"""Декоратор, который создаёт функцию с эквивалентной сигнатурой, но другим кодом. |
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
# Дата: где-то около октября 2020 | |
# | |
# Написано за час на паре как доказательство того, что классы существуют. | |
# (Да-да, они и вправду существуют!) | |
# Правок и изменений архитектуры не планируется. | |
from random import randint | |
class Alcohol: |
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
CREATE TABLE my_table ( | |
id SERIAL NOT NULL, | |
my_data VARCHAR, | |
PRIMARY KEY (id) | |
); |
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
win_id="$(xdotool getactivewindow)"; | |
desk_id="$(xdotool get_desktop)"; | |
desk_id=$((desk_id + 1)); | |
xdotool set_desktop_for_window "$win_id" "$desk_id"; | |
xdotool set_desktop "$desk_id"; |
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
mkdir -p ~/.ide-spelling/ | |
curl https://raw.githubusercontent.com/titoBouzout/Dictionaries/master/Russian.aff >> .ide-spelling/Russian.aff | |
curl https://raw.githubusercontent.com/titoBouzout/Dictionaries/master/Russian.dic >> .ide-spelling/Russian.dic | |
# TODO: add directly into PyCharm config |
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 fastapi import Depends | |
from fastapi_depends import inject_dependencies | |
def get_my_dep1() -> str: | |
# any type obj may be here. sqlalchemy.session and etc | |
yield 'HELLO WORLD' | |
@inject_dependencies() |
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 asyncio | |
import functools | |
import time | |
def cached_by_args(sync_or_async_func): | |
expiration_offset = 1.5 | |
cache = {} | |
def is_cache_actual(args, kwargs, now) -> bool: |
OlderNewer