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
# https://docs.astral.sh/ruff/settings/ | |
# | |
# extend = "../pyproject.toml" | |
line-length = 90 | |
[lint] | |
select = ["E", "F"] # Pyflakes and pycodestyle | |
ignore = ["E501"] # Allow long lines | |
unfixable = ["F401"] # Allow unused imports |
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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run the `open default settings` command | |
// from the command palette or from `Zed` application menu. | |
{ | |
"icon_theme": "Material Icon Theme", |
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
{ | |
"name": "New One", | |
"author": "Zed Industries", | |
"themes": [ | |
{ | |
"name": "New One", | |
"appearance": "dark", | |
"style": { | |
"border": "#464b57ff", | |
"border.variant": "#363c46ff", |
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
# File: /etc/systemd/system/[email protected] | |
# | |
# Valid arg values are: performance, balance-performance, normal, balance-power, power | |
# | |
[Unit] | |
Description=Set x86_energy_perf_policy %i | |
[Service] | |
Type=oneshot |
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
# vim: filetype=sh | |
# set path | |
set -l path_array $HOME/bin $HOME/.cargo/bin $HOME/.local/bin | |
if not contains $path_array[1] $PATH | |
set -a PATH $path_array | |
end | |
# exports | |
set -x EDITOR "vim" |
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
# Personal user | |
[user] | |
name = Your Name | |
email = [email protected] | |
# signingkey = xxxxxxxxxxx | |
editor = vim | |
# Work user | |
[includeIf "gitdir:~/Work/"] | |
path = .gitconfig-work | |
[core] |
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 python3 | |
import argparse | |
from email import policy | |
from email.parser import BytesParser | |
from email.utils import parsedate_to_datetime | |
from pathlib import Path | |
from typing import Iterable | |
from zoneinfo import ZoneInfo |
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 pandas as pd | |
# Create sample data | |
data = { | |
'Name': ['John', 'Emma', 'Alex', 'Sarah', 'Mike'], | |
'Age': [28, 24, 32, 27, 30], | |
'City': ['New York', 'London', 'Paris', 'Tokyo', 'Berlin'], | |
'Salary': [75000, 65000, 85000, 70000, 80000], | |
'Department': ['IT', 'HR', 'Finance', 'Marketing', 'IT'], | |
'Date_Joined': ['2020-01-15', '2019-08-22', '2021-03-10', '2020-11-30', '2018-05-14'], |
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 folium | |
import pandas as pd | |
from folium.plugins import MarkerCluster | |
# Load the CSV file into a Pandas DataFrame | |
csv_file = 'sl4.csv' # Replace with your CSV file path | |
data = pd.read_csv(csv_file) | |
# Initialize a Folium map centered on the average latitude and longitude | |
average_latitude = data['latitude'].mean() |
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 json | |
from operator import attrgetter | |
import pyalpm | |
handle = pyalpm.Handle("/", "/var/lib/pacman") | |
db = handle.get_localdb() | |
getpkgdata = attrgetter("name", "version") |
NewerOlder