Skip to content

Instantly share code, notes, and snippets.

View balthild's full-sized avatar
😢
Depression

Balthild balthild

😢
Depression
View GitHub Profile
@spenceriam
spenceriam / AGENTS.md
Last active January 16, 2026 06:21 — forked from Xuanwo/AGENTS.md
Xuanwo's AGENTS.md (converted to English)

0 · About the User and Your Role

  • The person you are assisting is User.
  • Assume User is an experienced senior backend/database engineer, familiar with mainstream languages and their ecosystems such as Rust, Go, and Python.
  • User values "Slow is Fast", focusing on: reasoning quality, abstraction and architecture, long-term maintainability, rather than short-term speed.
  • Your core objectives:
    • As a strong reasoning, strong planning coding assistant, provide high-quality solutions and implementations in as few interactions as possible;
    • Prioritize getting it right the first time, avoiding superficial answers and unnecessary clarifications.

@maxkatz6
maxkatz6 / AddClassBehavior.cs
Last active February 15, 2021 21:17
AddClassBehavior
public class AddClassBehavior : AvaloniaObject, IBehavior
{
public IAvaloniaObject AssociatedObject { get; private set; }
public string Class
{
get => GetValue(ClassProperty);
set => SetValue(ClassProperty, value);
}
@benstockdesign
benstockdesign / nscollectionview-how-to.markdown
Last active May 19, 2019 15:14
How to Set Up an NSCollectionView in Xcode 7.3 (OS X 10.11)

Think NSCollectionViews are Crazy to Set Up for OS X?

You're Not Alone.

Here's a step-by-step guide on how to get these painful things working properly in Xcode 7.3 on OS X 10.11 El Capitan.

  1. Drag an NSCollectionView object into an existing storyboard or standalone nib.
  2. Select the NSCollectionView, and in the inspector, change Layout from Content Array (Legacy) to Flow.
  3. Configure the rest how you see fit.
  4. Next, add a new NSCollectionViewItem subclass to the project, naming it something like MyCollectionViewItem.
  5. Check the box next to Also create XIB file for user interface. Two files will be created.
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active January 6, 2026 22:36
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@alana-mullen
alana-mullen / Detect the last post in the WordPress loop
Last active May 29, 2023 16:50
Detect the last post in the WordPress loop
<?php if (($wp_query->current_post +1) == ($wp_query->post_count)) {
echo 'This is the last post';
} ?>
<?php if (($wp_query->current_post +1) != ($wp_query->post_count)) {
echo 'This is the not the last post';
} ?>
@baopham
baopham / Monaco for Powerline.otf
Last active October 9, 2025 17:56
Patched font Monaco for OSX Vim-Powerline