Skip to content

Instantly share code, notes, and snippets.

View maxberggren's full-sized avatar

Max Berggren maxberggren

View GitHub Profile
@maxberggren
maxberggren / install-firefox-autohide.sh
Created December 7, 2025 19:41
Firefox auto-hide toolbar - shows only when mouse is in top 20px
#!/bin/bash
# Install Firefox with auto-hide toolbar configuration
# Shows toolbar only when mouse is in top 20px or URL bar is focused
set -e
echo "Setting up Firefox auto-hide profile..."
# Find the autohide profile directory
PROFILE_DIR=$(find ~/.mozilla/firefox -maxdepth 1 -name "*autohide*" -type d 2>/dev/null | head -1)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def compare_on_dataset(data, target_variable=None, lr=0.001, patience=150):
from IPython.display import display
df = (
pd.read_csv(data)
# Rename columns to lowercase and underscores
.pipe(lambda d: d.rename(columns={
k: v for k, v in zip(
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.