Skip to content

Instantly share code, notes, and snippets.

View DarkDimius's full-sized avatar

Dmitry Petrashko DarkDimius

View GitHub Profile
@retronym
retronym / Test.java
Created October 10, 2016 00:50
Exponential compilation and startup speed with default methods
public class Test {
interface I { default void m1() {} }
interface A1 extends I { default void a1() {} }
interface A2 extends I { default void a2() {} }
static class A3 implements A1, A2 {}
interface B1 extends A1, A2 { default void b1() {} }
interface B2 extends A1, A2 { default void b2() {} }
static class B3 extends A3 implements B1, B2 {}
interface C1 extends B1, B2 { default void c1() {} }
interface C2 extends B1, B2 { default void c2() {} }
@lrytz
lrytz / A.asm
Last active April 20, 2016 12:55
javac produces bytecode that causes NoSuchMethodError
// class version 52.0 (52)
// access flags 0x21
public class A {
// compiled from: A.java
// access flags 0x9
public static INNERCLASS A$K A K
// access flags 0x609
public static abstract INNERCLASS A$I2 A I2
// access flags 0x609
@XVilka
XVilka / TrueColour.md
Last active November 18, 2024 16:13
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@brandonb927
brandonb927 / osx-for-hackers.sh
Last active November 14, 2024 17:18
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx