Skip to content

Instantly share code, notes, and snippets.

View cancel-cloud's full-sized avatar
Coffee addicted lol

Lukas cancel-cloud

Coffee addicted lol
View GitHub Profile
@cancel-cloud
cancel-cloud / some.js
Last active June 15, 2023 17:52
requests
var requestOptions = {
method: 'POST',
redirect: 'follow'
};
fetch("http://0.0.0.0:8420/student?name=lolllo&gameId=4&profilePicture=https://post.healthline.com/wp-content/uploads/2019/04/Weed_Orange_1296x728-header-1296x728.jpg", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
- teacherId: 1
name: zuffinger
- teacherId: 2
name: cock
- teacherId: 3
name: cock
- question: "What does CPU stand for?"
answers:
- "Central Processing Unit"
- "Computer Processing Unit"
- "Core Processing Unit"
- "Controlled Processing Unit"
correctAnswer: 0
- question: "What does HTML stand for?"
answers:
- "HyperText Markup Language"
@cancel-cloud
cancel-cloud / index.html
Created March 10, 2023 09:36
Page loading time
<footer style="text-align: center;">
<div class="footercontent">
<p>My GitHub:
<a href="https://github.com/cancel-cloud">cancel-cloud</a>
</p>
<p>
Page loaded in <span id="load-time"></span>
</p>
<p>Alle Rechte der Bilder sowie den verlinkten Videos gehen an dessen Autoren.</p>
</div>
@cancel-cloud
cancel-cloud / Main.kt
Created February 26, 2023 16:44
CoffeMachineCalculator
fun main() {
println("Write how many ml of water the coffee machine has:")
print("> ")
val water = readLine()!!.toInt()
println("Write how many ml of milk the coffee machine has:")
print("> ")
val milk = readLine()!!.toInt()
println("Write how many grams of coffee beans the coffee machine has:")
print("> ")
val beans = readLine()!!.toInt()
Price: $75-100<br>
Time: 4-6 weeks<br>
<br><br>
Features:<br>
<ul>
<li>Everything in the Standard Package</li>
<li>Custom plugin development (up to 2000 lines of code each)</li>
<li>Integration with up to three third-party plugins</li>
<li>Advanced plugin commands (up to 10)</li>
<li>Ongoing support and maintenance for 3 months</li>
Price: $50<br>
Time: 2-4 weeks<br>
<br><br>
Features:<br>
<ul>
<li>Everything in the Basic Package</li>
<li>Custom plugin development (one plugin up to 1000 lines of code)</li>
<li>Advanced plugin customization and configuration</li>
<li>Advanced plugin commands (up to 5)</li>
<li>Integration with up to two third-party plugins</li>
<ul>
<li>Custom plugin installation and configuration</li>
<li>Basic plugin customization (e.g. changing configurations, adding basic features)</li>
<li>Basic plugin commands (up to 3)</li>
<li>Bug fixes or changes</li>
<li>1 week of active support (thus meaning, that I’ll be able to make deep plugin changes, if needed)</li>
<li>Optional:<br></li>
<ul>
<li>If a database is needed, you need to host it yourself</li>
</ul>
package de.cancelcloud.javastrings;
public class JavaStrings {
public static void main(String[] args) {
//task 1
String task1 = "Java Exercises!";
getCharAt(task1, 0);
//task 2
String task2 = "w3resource.com";
@cancel-cloud
cancel-cloud / Code.js
Created January 12, 2023 21:55
Zahlensystem Converter JavaScript
function convert(input, sourceUnit, targetUnit) {
let result = "";
let num = input;
let temp = "";
while (num > 0) {
let remainder = num % sourceUnit;
temp = remainder.toString(sourceUnit) + temp;
num = Math.floor(num / sourceUnit);
}
let decimal = 0;