This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style.css'; | |
import * as THREE from 'three'; | |
// Load environment texture | |
const texture = new THREE.TextureLoader().load('/test.jpg'); | |
// Set up scene and camera | |
const scene = new THREE.Scene(); | |
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); | |
// Camera at origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Personen: | |
Potter, Malfoy, Ron und Hermione | |
Benötigte Positionen: | |
- Vorsitzender | |
- Kassenwart | |
- Sekretär | |
Regeln: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) { |