Skip to content

Instantly share code, notes, and snippets.

@GarrettMooney
GarrettMooney / build.sh
Created February 11, 2025 17:36
Install geo_polars plugin from python polars book
#!/usr/bin/env bash
# install rustup if it doesn't exist
if ! command -v rustup &> /dev/null
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
# install uv if it doesn't exist
if ! command -v uv &> /dev/null
edges = cv2.Canny(image, 100, 200)
@cemalley
cemalley / python_table_equivalent.py
Created February 11, 2025 17:35
python's equivalent of table()
print(data['edu'].value_counts())
@simonewebdesign
simonewebdesign / pomodoro_timer.sh
Created February 11, 2025 17:35
Simple pomodoro timer Bash script (macOS)
#!/bin/bash
# Function to send a macOS notification
send_notification() {
osascript -e 'display notification "'"$1"'" with title "'"$2"'"'
}
# Function to display a countdown in the terminal
countdown_timer() {
local time_left=$1
#!/bin/sh
set -e
# Docker Engine for Linux installation script.
#
# This script is intended as a convenient way to configure docker's package
# repositories and to install Docker Engine, This script is not recommended
# for production environments. Before running this script, make yourself familiar
# with potential risks and limitations, and refer to the installation manual
# at https://docs.docker.com/engine/install/ for alternative installation methods.
#
@akoserwal
akoserwal / inv_smoketest.sh
Created February 11, 2025 17:35
inventory smoke test
#!/bin/bash
set -e
set -o pipefail
# Set API URL
INV_HTTP_URL=${INV_HTTP_URL:-"http://localhost:8000"}
# Function to make requests and validate responses
make_request() {
@maikel76
maikel76 / -digital-human-psilocybin-induced-conectome.ipynb
Last active February 11, 2025 17:38
🔗🍄 Digital Human Psilocybin-Induced Conectome 🍄🔗.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cartas de San Valentín</title>
<style>
body {
background-color: #ffccd5;
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{pgfplots}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:33
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 6:33:46 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
Mechanoid Upgrades(GoGaTio.MechanoidUpgrades): MechanoidUpgrades(1.0.0)