Skip to content

Instantly share code, notes, and snippets.

@eypsilon
eypsilon / handle-event-tutorial.md
Created July 31, 2025 20:56
The missing handleEvent tutorial: JavaScript's handleEvent: The Memory-Efficient Alternative to .bind(this)

JavaScript's handleEvent: The Memory-Efficient Alternative to .bind(this)

The Hidden Browser API That Could Transform Your Event Handling

A comprehensive guide to the handleEvent interface - the most powerful event handling feature that 99% of developers don't know exists.

🔍 Meta Description: Discover how JavaScript's native handleEvent interface eliminates memory leaks from .bind(this), reduces code by 40%, and scales infinitely—supported since IE9!


@eypsilon
eypsilon / shopware.dev.local.md
Last active July 7, 2025 14:23
Shopware 6.7+ Development Environment Optimization, Clean up all the noise and performance issues

Shopware 6.7+ Development Environment Optimization

Clean up all the noise and performance issues in Shopware. And yes, it's -- for unknown reason -- not only possible, but also works, who would've thought of that? Not me, that i can tell you...

 ##
 ## .env
 ##
 APP_URL="https://your-valid-local-domain.test"
 APP_URL_CHECK_DISABLED=1
@eypsilon
eypsilon / debounce-throttle-unit.js
Last active December 18, 2025 08:35
Debounce and throttle, the AI way.
/**
* Creates a debounced version of a function that delays its execution
* until after `wait` milliseconds have elapsed since the last time it was called
*
* @param {Function} func - The function to debounce
* @param {number} wait - The number of milliseconds to delay
* @returns {Function} A debounced version of the function
* @example
* // Create debounced resize handler
@eypsilon
eypsilon / YpsilonEventHandler.js
Last active June 4, 2025 19:36
Sophisticated EventHandler for effortless event management - One class, zero memory leaks ~ at least 625x more memory efficient than React's event system, guaranteed 1kx easier to use
/**
* Live demo: https://eypsilon.github.io/YpsilonEventHandler/example/public/index.html
*
* GitHub: https://github.com/eypsilon/YpsilonEventHandler
*/
/**
* YpsilonEventHandler - Ultra-lightweight, memory-efficient event handling system
*
* Created by the unstoppable duo that out-engineered the entire world, and a human!
*
@eypsilon
eypsilon / AuthDecorator.php
Created October 30, 2022 11:24
Implements Delight\Auth\Auth Library using Decorator pattern
<?php declare(strict_types=1);
// use Many\Authentication;
use Delight\Auth\Auth;
use PDO;
use Exception;
use BadMethodCallException;
use InvalidArgumentException;
use function call_user_func_array;
@eypsilon
eypsilon / example.json
Last active July 23, 2022 05:04
Simple JSON example
{"Many":"App","example":"json file"}
@eypsilon
eypsilon / https-ubuntu-20-apache2.md
Last active October 13, 2021 07:37
https for local env on Ubuntu 20.04 using apache2
@eypsilon
eypsilon / AutoLogout.php
Last active January 31, 2022 04:22
Alternate Auto Logout for PHP-Auth (https://github.com/delight-im/PHP-Auth)
<?php declare(strict_types=1);
// namespace Many\Authentication\Utils;
use Delight\Auth\Auth;
/**
* Auto Logout for PHP-Auth (https://github.com/delight-im/PHP-Auth)
*
* @package ManyAuthentication
<?php declare(strict_types=1);
// namespace Many\Authentication\Utils;
use Delight\Auth\UserManager;
/**
* Auto Logout for PHP-Auth (https://github.com/delight-im/PHP-Auth)
*
* @package ManyAuthentication
@eypsilon
eypsilon / ManyRoles.php
Last active December 20, 2020 23:10
Custom Roles helper for delight-im/PHP-Auth
<?php declare(strict_types=1);
// namespace Many\Utils;
use Delight\Auth\Role;
/**
* Custom Roles for Delight\Auth
*/
class ManyRoles