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 May 2, 2025 12:38
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

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 everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.


As 2024 is winding down:

@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 March 31, 2025 12:58
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