Skip to content

Instantly share code, notes, and snippets.

View elementbound's full-sized avatar

Tamás Gálffy elementbound

View GitHub Profile
@krazyjakee
krazyjakee / Debouncer.gd
Created September 28, 2025 22:11
Debounce helper for calling functions
## Debounce helper for calling functions.
##
## This class creates a debounced version of the passed-in function `fn`.
## The debounced function will only be called after `delay` seconds have
## passed without any new calls to the function.
##
## [b]Usage Example:[/b]
## [codeblock]
## var debouncer: Debouncer
##
@sethprog26
sethprog26 / proj.cpp
Created May 6, 2021 21:27
Project From Ademitan Akinlade-Fajemirokun
#include <iostream>
#include <string>
using namespace std;
void printRules() {
cout << "Rules:\n"
<< " * The player who has three horizontally adjacent pieces, loses\n"
<< " * The player who has three vertically adjacent pieces, loses\n"
<< " * The player who has three diagonally adjacent pieces, loses\n"
@ef4
ef4 / examples.md
Last active July 20, 2025 09:12
Webpack 5 Node Polyfills Upgrade Cheatsheet

Webpack 5 Node Polyfills Upgrade Cheatsheet

Webpack 4 automatically polyfilled many Node APIs in the browser. This was not a great system, because it could lead to surprisingly giant libraries getting pulled into your app by accident, and it gave you no control over the exact versions of the polyfills you were using.

So Webpack 5 removed this functionality. That means you need to make changes if you were relying on those polyfills. This is a quick reference for how to replace the most common patterns.

List of polyfill packages that were used in webpack 4

For each automatically-polyfilled node package name on the left, this shows the name of the NPM package that was used to polyfill it on the right. Under webpack 5 you can manually install these packages and use them via resolve.fallback.

@somahargitai
somahargitai / ThingsMakeMeMad.MD
Last active October 17, 2025 10:56
My universal IT complainer surface

I just complain here

This is a complainer surface to show the world the dark side of my real-life developer experience

content
  • Things software engineers say about work

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@19h47
19h47 / COMMAND.md
Last active January 23, 2018 03:10
Command

cd

The cd command is used to change the current directory.

cd stand for change directory

cd path/of/directory
@saitoha
saitoha / suckless-st-sixel.diff
Last active September 21, 2025 01:59
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <[email protected]>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <[email protected]>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
@dfrankland
dfrankland / checkered.css
Created August 25, 2016 21:30
CSS Checkered pattern that can be used on all modern browsers.
body {
background-image:
linear-gradient(45deg, #ccc 25%, transparent 25%),
linear-gradient(135deg, #ccc 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #ccc 75%),
linear-gradient(135deg, transparent 75%, #ccc 75%);
background-size:25px 25px; /* Must be a square */
background-position:0 0, 12.5px 0, 12.5px -12.5px, 0px 12.5px; /* Must be half of one side of the square */
}
Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig