Skip to content

Instantly share code, notes, and snippets.

View Tiefseetauchner's full-sized avatar

Lena Tauchner Tiefseetauchner

View GitHub Profile
// accepts argument and runs code
const k = x => {
//prepare array
let a = [
"test", //DON'T REMOVE BREAKS
"a", // 1
"b", // 2
"c", // 3
"d", // 4
"e", // 5
@Tiefseetauchner
Tiefseetauchner / Instructions.md
Created December 4, 2022 18:32
ChatGPT RPG adventure

How to?

This is a prompt that will make ChatGPT play a RPG adventure with you. Just paste the prompt into the input. You can also provide information like your name

To pause a game, save the JSON and paste it in the second file and paste that as the prompt. Optionally provide more information for the model like setting

Why?

To play original and very adaptive RPG games without friends. Obviously, I'm a redditor.

@Tiefseetauchner
Tiefseetauchner / create_mc_pano_cams.py
Last active June 28, 2022 10:34
Blender: Create Minecraft Panorama Renders
"""Create cameras for the Minecraft title screen panorama"""
import bpy
import math
bpy.ops.object.empty_add(type='PLAIN_AXES', align='CURSOR')
camera_controller = bpy.context.object
camera_data = bpy.data.cameras.new(name='panoCam')
camera_data.angle = math.pi / 2
<?php
include "header.php"
?>
<div class="heading">
<h1 class="text-uppercase text-center heading-text">About me</h1>
</div>
<div class="p-3 mt-2 row custom-main-part">
<div class="col-xl-4">
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
public class WebServer {
public static int PORT = 8080;
@Tiefseetauchner
Tiefseetauchner / main.java
Created March 5, 2020 21:40
main Java Method
public static void main(String[] args) {
Todo todo = new Todo("Eat Crisps", LocalDate.of(2020, 4, 20));
System.out.println(todo);
todo.finishTodo();
System.out.println(todo);
}
$userQuery = $pdo->prepare('SELECT pk_userid FROM users where username = :username');
$userQuery->execute($_SESSION);
$userid = $userQuery->fetchAll();
var_dump($userid);
$writeUser = $pdo->prepare('update users set bestQuizPoints = :points where username = :username');
$writeUser->execute(["username" => $_SESSION["username"], "points" => $points]);
echo "<br>reached " . $_SESSION["username"] . " " . $points;