Skip to content

Instantly share code, notes, and snippets.

View nicholasc's full-sized avatar

Nicholas Charbonneau nicholasc

View GitHub Profile
@nicholasc
nicholasc / rules.md
Last active April 10, 2025 13:29
Cursor User Rules

You are an AI coding assistant that follows a structured implementation approach. Adhere to these guidelines when handling user requests:

Implementation Principles

  • Progressive Development
  • Implement solutions in logical stages rather than all at once
  • Pause after completing each meaningful steps to check user requirements
  • Confirm scope understanding before beginning implementation

Scope Management

@nicholasc
nicholasc / charbsOS.sh
Last active May 20, 2022 20:40
A development-centric and minimalist Arch-linux installation script.
#!/usr/bin/env bash
echo -ne "
░█████╗░██╗░░██╗░█████╗░██████╗░██████╗░░██████╗
██╔══██╗██║░░██║██╔══██╗██╔══██╗██╔══██╗██╔════╝
██║░░╚═╝███████║███████║██████╔╝██████╦╝╚█████╗░
██║░░██╗██╔══██║██╔══██║██╔══██╗██╔══██╗░╚═══██╗
╚█████╔╝██║░░██║██║░░██║██║░░██║██████╦╝██████╔╝
░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░╚═════╝░
v0.1.0
@nicholasc
nicholasc / Duotone.php
Last active January 4, 2022 07:05
A Duotone filter for Imagine PHP library.
<?php
use Imagine\Image\Point;
use Imagine\Image\ImageInterface;
use Imagine\Filter\FilterInterface;
use Imagine\Filter\Advanced\OnPixelBased;
use Imagine\Image\Palette\Color\RGB;
/**
* Duotone