import os | |
import sys | |
def merge_txt_files(input_dir, output_file): | |
""" | |
Merges all .txt files found in the specified input directory into a single output file. | |
Parameters: | |
- input_dir (str): The directory to search for .txt files. | |
- output_file (str): The path to the output file where the merged content will be stored. |
How would this best be enhanced, improved, optimized, and refined to produce the most advanced version possible?
What would the full implementation look like with these enhancement recommendations robustly integrated throughout the existing code?
#!/bin/zsh | |
<<COMMENT | |
------------------------------------------------- | |
setup.zsh: A macOS configuration setup script | |
Purpose: | |
Automates the setup process for a new macOS machine by installing desired Homebrew packages, cask apps, and configuring zsh. | |
Usage Examples: |
"""logger.py - logging utilities | |
""" | |
# == Imports =============================================================== | |
import inspect | |
import logging | |
import time | |
from datetime import datetime | |
from functools import wraps | |
from logging.config import fileConfig | |
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type |
![icon.png](https://gist.github.com/wyattowalsh/5769a53cbb3d6de4b5e356d876130dbb/raw/e6b54b857560ab64bcf69313cb8f41a116cd42ea/icon.png)
#!/bin/zsh | |
echo "Installing xcode ..." | |
xcode-select --install | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
This project seeks to provide a tool to accurately predict the attendance of NBA games in order to better inform the business decisions of different stakeholders across the organization. Predicting game attendance is crucial to making optimized managerial decisions such as planning necessary staffing needs or procuring the proper level of supplies (janitorial, food services, etc). The project is currently being worked on in its second version, version_2
. In version 1, an entire machine learning pipeline is established throughout a host of modules ranging from web scraping for data collection to neural-network regression modeling for prediction. These efforts resulted in a high accuracy model with mean absolute error values for attendance around 800 people. However, improvements in data sources and modeling paradigms for improved accuracy are being sought in a few ways in the upcoming version. Click the link below to view the analysis and modeling versio
# action to update my kaggle basketball dataset (see more here https://www.kaggle.com/wyattowalsh/basketball) | |
name: Update Kaggle Basketball Dataset - Daily | |
# Controls when the action will run. | |
on: | |
schedule: | |
- cron: "15 3 * * *" # update every night at 3:15am | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: |