Skip to content

Instantly share code, notes, and snippets.

View derappelt's full-sized avatar

Simon Appelt derappelt

  • cekom GmbH
  • Siegburg (Germany)
View GitHub Profile
@derappelt
derappelt / doubly_linked_list.c
Created January 9, 2016 13:18
Doppelt verkettete Liste für Robin
#include <stdio.h>
#include <stdlib.h>
struct Node
{
struct Node *previous;
struct Node *next;
int data;
};
@derappelt
derappelt / fbie.css
Created June 26, 2017 11:22
flexbox IE Center fix
.flex-parent {
display:flex;
flex-direction:row;
}
.flex-child {
min-height: 100vh;
align-items: center;
display:flex;
justify-content: center;
flex-direction: column;
var colorStops = [
{ p: 0.1, c: [244, 67, 54] },
{ p: 0.5, c: [255, 236, 59] },
{ p: 1.0, c: [76, 175, 79] }
];
var getColorForPercentage = function (p, stops) {
p = (p < 0) ? 0 : (p > 1) ? 1 : p;
for (var i = 1; i < stops.length - 1; i++) {
if (p < stops[i].p) {
export function say(msg: string){
console.log(msg);
}
@derappelt
derappelt / object_boolean_tools.py
Created January 10, 2019 20:01
Bool Tools Addon for Blender 2.8
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the