Skip to content

Instantly share code, notes, and snippets.

View finia2NA's full-sized avatar

Finite finia2NA

  • Berlin, Germany
View GitHub Profile
@finia2NA
finia2NA / bezier_math.cpp
Last active August 15, 2022 15:00
Rational decasteljau
#include "bezier_math.h"
// References:
// https://en.wikipedia.org/wiki/B%C3%A9zier_curve#Rational_B%C3%A9zier_curves
// http://resources.mpi-inf.mpg.de/departments/d4/teaching/ss2012/geomod/slides_public/12_Rational_Splines.pdf
// https://doi.org/10.1016/B978-155860737-8/50013-2
namespace Bezier_Math{
@finia2NA
finia2NA / journal.sh
Created February 8, 2020 17:11
Script for managing a journal using git and gedit.
# put your journal files in sources/ .
# use this script to start editing.
git pull && ls sources/ | dmenu -l 8 | gedit $(awk '{print "sources/" $0}') -w --new-window && git add . && git commit -m "Entry $(date)" && git push
/*
Personen:
Potter, Malfoy, Ron und Hermione
Benötigte Positionen:
- Vorsitzender
- Kassenwart
- Sekretär
Regeln:
import java.util.Scanner;
public class Controller {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Model board = new Model();
String input = "";
while (!input.equals("HALT")) {