This file contains 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.HashMap; | |
/** | |
* @author Stefan | |
*/ | |
public class PizzaService { | |
public double calculatePizzaCost(int numberOfPizza, String typeOfPizza) throws IllegalArgumentException { | |
double[] extraCost = {4.3, 3.75, 2.5, 1.75}; | |
HashMap<String, Number> typeToIndex = new HashMap<String, Number>(); | |
This file contains 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
package com.leon.uni; | |
import java.awt.Component; | |
import java.awt.EventQueue; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.Point; | |
import java.awt.Rectangle; | |
import java.awt.Toolkit; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; |
This file contains 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
package com.leon.hfu.customDate; | |
import java.util.Calendar; | |
/** | |
* Custom date class containing methods for date calculation. | |
* | |
* @author Stefan Hahn | |
*/ | |
public class Date implements Comparable<Date> { |
This file contains 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
package com.leon.hfu.vacationHomeCalculation; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.Vector; | |
import com.leon.hfu.customDate.Date; | |
import com.leon.hfu.customDate.DateFormatException; | |
/** |
This file contains 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
Modules.RainbowMode = (function() { | |
var bcplus = null; | |
var initialize = function(_bcplus) { | |
bcplus = _bcplus; | |
buildUI(); | |
addEventListeners(); | |
}; | |
This file contains 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
unsigned char bm_face_happy[] = { | |
0b11111111, 0b11111111, | |
0b00000001, 0b10000000, | |
0b00000001, 0b10000000, | |
0b00000001, 0b10000011, | |
0b00110001, 0b10000100, | |
0b00110001, 0b10001000, | |
0b00000001, 0b10001000, | |
0b00000001, 0b10001000, | |
This file contains 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
// Prime Field Size | |
p := 0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53; | |
// Curve Parameter One | |
a := 0x7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826; | |
// Curve Parameter Two | |
b := 0x04A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11; | |
// Cofactor | |
h := 0x01; | |
// Curve Base Point X |
This file contains 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
#!/usr/bin/env python3 | |
import argparse | |
import glob | |
import multiprocessing.dummy | |
import os | |
import sys | |
import cv2 as cv | |
import numpy as np |
This file contains 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
// ==UserScript== | |
// @name BisaChat Chrome Fullscreen Fix | |
// @namespace http://projects.0xleon.com/userscripts/bc-chrome-full-fix | |
// @version 1.0.0 | |
// @description Fixes a BisaChat fullscreen bug in Chrome. | |
// @author Stefan Hahn | |
// @copyright 2018, Stefan Hahn | |
// @match https://bisachat.bisafans.de/index.php?room/*/ | |
// @grant unswafeWindow | |
// @run-at document-body |
This file contains 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
// ==UserScript== | |
// @name BisaChat Plus | |
// @namespace http://projects.0xleon.com/userscripts/bcplus | |
// @version 4.0.0.dev1 | |
// @description Make BisaChat Great Again | |
// @author Stefan Hahn | |
// @match https://bisachat.bisafans.de/index.php?room/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
OlderNewer