Skip to content

Instantly share code, notes, and snippets.

View klg71's full-sized avatar

klg71

  • Mayope Software Services UG (haftungsbeschränkt)
View GitHub Profile
@klg71
klg71 / LICENSE
Created February 1, 2024 11:01
ShaderGraph Mesh Generator
Copyright (c) 2012 Lampo Licensing, LLC
http://www.developwithpurpose.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN C
@klg71
klg71 / BoneSetter.cs
Last active November 19, 2023 12:19
Dynamic Equipment System in Unity
using UnityEngine;
public class BoneSetter : MonoBehaviour {
// Reference skinnedMeshRenderer, to copy bones from
public SkinnedMeshRenderer sourceSkinMeshRenderer;
[SerializeField] private string[] boneNames;
[SerializeField] private Transform[] bones;
@klg71
klg71 / Ability.kt
Created June 30, 2023 11:43
Spells as Code
interface AbilityCompanion : ScaledAbility {
fun id(): UUID
fun name(): String
fun aggroModifier(): Long = 1
//Used for bosses where the ability changes from one difficulty to another
fun descriptionOverride(difficulty: Difficulty): String? = null
// Locks rotation while casting (only in client)
fun lockRotation(): Boolean = false
@klg71
klg71 / License
Last active June 3, 2023 16:52
chat server with websockets and flows
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@startuml
entity TodoList{
Int id
String description
}
entity Entry{
Int id
Int todo_list_id
LocalDateTime dueDate
@klg71
klg71 / deployment.yaml
Last active June 4, 2021 11:22
Kubernetes Workshop in the MayopeCloud
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
spec:
selector: # These labels have to match those configure under template.metadata.labels
matchLabels:
app: hello-world
template:
metadata:
apiVersion: v1
kind: Pod
metadata:
name: static-web
labels:
role: myrole
spec:
containers:
- name: web
image: nginx
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerdemo
spec:
selector:
matchLabels:
app: dockerdemo
template:
metadata:
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerdemo
spec:
selector:
matchLabels:
app: dockerdemo
template:
metadata:
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerdemo
spec:
selector:
matchLabels:
app: dockerdemo
template:
metadata: