Skip to content

Instantly share code, notes, and snippets.

View JanickLehmann's full-sized avatar

Janick Lehmann JanickLehmann

View GitHub Profile
public void sort(int[] data) {
quicksort(data, 0, data.length - 1);
}
public void quicksort(int[] data, int beg, int end) {
if (beg < end) {
int i = beg, j = end;
int p = data[(i + j) >>> 1];
while (i <= j) {
while (data[i] < p) i++;
@JanickLehmann
JanickLehmann / win10colors.cmd
Created October 4, 2022 06:17 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m