Skip to content

Instantly share code, notes, and snippets.

View DZvO's full-sized avatar

Alex Wiens DZvO

View GitHub Profile
@DZvO
DZvO / config
Created September 12, 2019 13:13
i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@DZvO
DZvO / init.vim
Created September 12, 2019 12:40
NeoVim config
set nocompatible
filetype off
" turn filetype detection, indent scripts and filetype plugins on
filetype plugin indent on
let g:python_host_prog=expand("~/.pyenv/versions/2.7.16/bin/python2")
let g:python3_host_prog=expand("~/.pyenv/versions/3.7.3/bin/python3")
" copy indent from current line when starting a new line
set autoindent
@DZvO
DZvO / remove-all-from-docker.sh
Created September 9, 2019 11:09 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
apt install git
wget https://github.com/git-lfs/git-lfs/releases/download/v2.7.1/git-lfs-linux-amd64-v2.7.1.tar.gz
mkdir gitlfs
cd gitlfs
tar xfv ../git-lfs-linux-amd64-v2.7.1.tar.gz
./install.sh
cd ..
git clone https://github.com/Paeti/IPNeuronaleNetze.git
cd IPNeuronaleNetze
git lfs pull
public class Traverse
{
BinaryTree tree = null;
/**
* Constructor for objects of class Traverse
*/
public Traverse()
{
tree = new BinaryTree(new MyItem('r'));
BinaryTree b1 = new BinaryTree(new MyItem('a'));
public class HA_19_09_2012 {
public static class Stapel {
Object [] stapel = new Object[0];
Object push (Object toAdd) {
Object [] nstapel = new Object[stapel.length + 1];
for(int i = 0; i < stapel.length; i++) {
nstapel[i] = stapel[i];
@DZvO
DZvO / gist:3624804
Created September 4, 2012 18:41
InfoHA
public class Main {
class Zahlen {
int [] g;
public Zahlen (int s) {
g = new int[s];
}
public void ausgeben () {
http://assets.minecraft.net/1_3/minecraft.jar
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-22-*-*-*-*-*-*-*";
//static const char font[] = "-misc-dejavu sans mono-medium-r-normal--14-0-0-0-m-0-ascii-0";
//normal colors
static const char normbordercolor[] = "#2a2a2a"; //bordercolor
static const char normbgcolor[] = "#2a2a2a"; //color for bar
static const char normfgcolor[] = "#888888"; //color for workspace numbers and workspace layout
import java.io.BufferedReader;
import java.io.FileReader;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import org.lwjgl.opengl.GL20;