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
[loggers] | |
keys=root,file | |
[handlers] | |
keys=console,file | |
[formatters] | |
keys=console,file | |
[logger_root] |
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
# src/main.py | |
import logging | |
import logging.config | |
import os | |
from datetime import datetime | |
from data_processing.processor import process_data | |
from dotenv import find_dotenv, load_dotenv | |
from model_training.trainer import train |
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
# src/main.py | |
import logging | |
import sys | |
from data_processing.processor import process_data | |
from model_training.trainer import train | |
# instantiate logger | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) |
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
TEST_RATIO = 0.1 | |
BUCKETS = 10 | |
def assign_hash_bucket(value: Any, total_buckets: int = BUCKETS) -> int: | |
"""Assign a bucket to an input value using hashing algorithm""" | |
hashed_value = farmhash.fingerprint64(str(value)) | |
return hashed_value % total_buckets | |
def test_set_check(bucket: int) -> bool: |
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
"""Get song titles and artists from Spotify playlist""" | |
import csv | |
import os | |
import re | |
import spotipy | |
from dotenv import load_dotenv | |
from spotipy.oauth2 import SpotifyClientCredentials |
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
service: | |
type: LoadBalancer | |
# These values, when defined and not empty, override the provided shared annotations and labels. | |
# Uncomment only if you are trying to override the chart's shared values. | |
#annotations: {} | |
#labels: {} | |
# If the loadBalancer supports sessionAffinity and you have more than one coordinator, | |
# uncomment the below line to enable session affinity. |
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
# Control where uploaded files are stored for Dremio. | |
# For more information, see https://docs.dremio.com/deployment/distributed-storage.html | |
distStorage: | |
# The supported distributed storage types are: local (<21.0.0 only), aws, azure, gcp, or azureStorage. | |
# | |
# local: (<21.0.0 only) Not recommended for production use. When using local, dist-caching is disabled. | |
# aws: AWS S3, additional parameters required, see "aws" section. | |
# azure: ADLS Gen 1, additional parameters required, see "azure" section. | |
# azureStorage: Azure Storage Gen2, additional paramters required, see "azureStorage" section. | |
# gcp: Google Cloud Storage, additional parameters required, see "gcp" section. |
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
tell application "Google Chrome" | |
set currentURL to URL of active tab of front window | |
close active tab of front window | |
set theWindow to make new window | |
set URL of active tab of theWindow to currentURL | |
end tell |
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
add_newline = false | |
[gcloud] | |
disabled = true | |
format = 'on [$symbol$account (\($project\)) in (\($region\))]($style) ' | |
[gcloud.region_aliases] | |
europe-west2 = "eu-w2" | |
[python] | |
format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)' |
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
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# need to disable in order for exa ls alias to work | |
DISABLE_LS_COLORS="true" | |
# FZF settings | |
export FZF_BASE="$HOME/.fzf" | |
export FZF_DEFAULT_COMMAND='rg --hidden --no-ignore --files -g "!.git/"' | |
export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND |
NewerOlder