Skip to content

Instantly share code, notes, and snippets.

@Ash-broccoli
Ash-broccoli / SuterProjectHelp.md
Last active May 13, 2022 08:41
This is just going to be a summary of where to find what Suter wants in m133

Where to find things

Documentation Milestone 0

  • In the file M133_LB2_2021_Projektvorgaben.pdf
  • Page 5
  • Section 2.1 is the only section you should focus on on that page
  • Remember to finish your Klassendiagramm before you add it in your documentation

Example Documents for milestone 0

  1. Example Documentation from Suter BookList_Doku.pdf
@Marconymous
Marconymous / CSVFileHandler.java
Last active December 7, 2022 09:56
Java CSV Import / Export Implementation
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class CSVFileHandler<T extends CSVFileHandler.CSVSerializable<? extends T>> {
public interface CSVSerializable<T> {
String toCSV(char delimiter);
String getCSVHeader(char delimiter);

DB Bezeichnungen

Wort Beschreibung Beispiel
Attributstyp namen der attribute ID
Attribut(swert) Attribut / Wert des Typen 2
Attributsmenge Alle Attribute eines Attributtypen zusammen 2,3,4,5
Entitätstyp Alle Attributstypen ID, Titel, Preis
Entität Einzelne Reihe (mit allen attributen) 2,2.70
Attributstyp = Spalte (Preis, Titel, etc.)
Attributswert (Attribut) = Wert in der Zelle (20, abs)
Attributsmenge = Alle Zeilen des Attributstyp
Entitätstyp = Aus welchen Attributstypen besteht die Tabelle
Entität = Ein Datensatz
@rylev
rylev / learn.md
Created March 5, 2019 10:50
How to Learn Rust

Learning Rust

The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.

Warning

Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.

The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.

@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active June 24, 2024 20:17
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@JISyed
JISyed / gradually_turn.gml
Created September 5, 2013 04:05
GameMaker script (GML) that makes an object gradually turn towards a target object at the specified speed. A tutorial explaining this code can be found here: http://jibransyed.wordpress.com/2013/09/05/game-maker-gradually-rotating-an-object-towards-a-target/
// gradually_turn.gml
// --------
// Gradually turns an object towards its target
//
// FORMAT:
// gradually_turn(objToTurn, target, turnSpeed, accuracy);
//
// <objToTurn> takes an object
// <target> takes an object
@sanchitgangwar
sanchitgangwar / snake.py
Created March 22, 2012 12:38
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0)