- Career growth requires choosing the right company, team, and manager in addition to your own effort. Every candidate should have an answer for:
- How do you know
- This company is on a growth trajectory?
- How do you know
- This team within the company is influential/important?
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
| """ | |
| Usage: | |
| A dataclass/YAML/CLI config system: | |
| - write a @dataclass with your config options | |
| - make sure every option has a default value | |
| - include a `config: str = ""` option in the dataclass. | |
| - write a main function that takes a single argument of the dataclass type | |
| - decorate your main function with @dataclass_cli | |
| - make sure your main function has a docstring. |
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
| # Taken from https://github.com/Shivanshu-Gupta/attr-hyperparams | |
| import attr | |
| import cattr | |
| from collections.abc import MutableMapping | |
| from collections import UserList | |
| from typing import IO, Iterable, Text, Union, get_origin, get_args | |
| from pathlib import Path | |
| from itertools import product | |
| from copy import deepcopy |
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 random | |
| import logging | |
| from rich.logging import RichHandler | |
| from rich.pretty import pretty_repr | |
| class CustomRichHandler(RichHandler): | |
| def emit(self, record) -> None: | |
| if not isinstance(record.msg, str): | |
| record.msg = pretty_repr(record.msg) | |
| return super().emit(record) |
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
| # Usage: | |
| # for _ in track(range(10), "Doing stuff..."): | |
| # pass | |
| from typing import Callable, Iterable, List, Optional, Sequence, Union | |
| from rich.progress import ProgressType, Progress, TextColumn, ProgressColumn, BarColumn, TimeElapsedColumn, TimeRemainingColumn | |
| from rich.style import StyleType | |
| from rich.console import Console | |
| def get_progress_bar( |
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 os | |
| import requests | |
| # import selenium.webdriver as webdriver | |
| import seleniumwire.webdriver as webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| URL = 'https://slideslive.com/embed/presentation/38969236?embed_parent_url=https%3A%2F%2Fnips.cc%2Fvirtual%2F2021%2Ftutorial%2F21891&embed_container_origin=https%3A%2F%2Fnips.cc' | |
| DOWNLOADS_DIR = '/Users/shivanshu/Downloads/neurips/tut-structural-priors/' |
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
| # ---------------------------------------------------------------------------- # | |
| # Python # | |
| # ---------------------------------------------------------------------------- # | |
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions |
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
| #!/usr/bin/env bash | |
| # gdrive_download | |
| # | |
| # script to download Google Drive files from command line | |
| # not guaranteed to work indefinitely | |
| # taken from Stack Overflow answer: | |
| # http://stackoverflow.com/a/38937732/7002068 | |
| gURL=$1 |
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
| {"lastUpload":"2020-10-01T08:42:47.138Z","extensionVersion":"v3.4.3"} |
NewerOlder