Skip to content

Instantly share code, notes, and snippets.

View Geolykt's full-sized avatar
🍴
Fork, fork

Geolykt

🍴
Fork, fork
View GitHub Profile
@conclube
conclube / Data.java
Last active April 13, 2021 10:51
Dependency Injection
public class Data {
/* Arbitrary data in this class */
}
@probonopd
probonopd / Wayland.md
Last active December 19, 2025 21:24
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@fny
fny / MIT License Comment Headers.md
Created March 3, 2018 17:38
MIT License Comment Headers

MIT License Comment Headers Formatted for Various Languages

A convenient reference for adding a MIT license to a work.

All prepared texts are hard wrapped at 80 characters unless stated otherwise.

No Wrap

@psayre23
psayre23 / gist:c30a821239f4818b0709
Last active December 16, 2025 14:16
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array