Skip to content

Instantly share code, notes, and snippets.

View HurricanKai's full-sized avatar

Kai Jellinghaus HurricanKai

View GitHub Profile
@HurricanKai
HurricanKai / snake-working.livemd
Created June 20, 2022 11:48
A working snake game made with Elixir in Livebook

Snake

Mix.install([
  {:kino, "~> 0.6.1"}
])

The Game

@HurricanKai
HurricanKai / CopyingGoesBrrrrr.cs
Created June 5, 2022 10:48
A demo achieving 90% throughput using Vulkan & Silk.NET. Written in C#
using System.Collections.Concurrent;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Vulkan;
using Buffer = Silk.NET.Vulkan.Buffer;
using Semaphore = Silk.NET.Vulkan.Semaphore;
unsafe
{
use gloo_timers::callback::Timeout;
use std::mem::replace;
use std::ops::DerefMut;
use yew::{
prelude::*,
suspense::{Suspension, SuspensionHandle, SuspensionResult},
};
#[hook]
fn use_delay(ms: u32) -> SuspensionResult<bool> {
" Place in ~/.config/nvim/init.vim
" Install https://github.com/Shougo/dein.vim
"den Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/kaije/.vim/dein/repos/github.com/Shougo/dein.vim
using System.Diagnostics;
namespace Implementation;
public class Day4
{
public static int Part1(string input)
{
var lines = input.Split('\n').Where(x => x is not null).ToArray();
var drawOrder = lines[0].Split(',').Select(int.Parse).ToArray();
{
"basics": {
"name": "Kai Jellinghaus",
"label": "Programmer",
"image": "",
"email": "contact@kaij.tech",
"phone": "+49 179 5505 748",
"url": "https://github.com/HurricanKai",
"summary": "Young programmer from Germany, .NET enthusiast, love for Graphs",
"location": {
@HurricanKai
HurricanKai / Videre - Projektbeschreibung.md
Last active January 19, 2021 10:25
Videre - Projektbeschreibung

Videre - Eine wissenschaftliche Rendering engine

(Ich empfehle diesen Text hier zu lesen)

Videre ist eine simple Vulkan-basierte Darstellungsbibliothek (Rendering engine), die eine einfache, aber effektive API verfügbar macht.

Videre kann von Programmierern ohne Grafik-Erfahrung für Prototypen, wissenschaftliche Darstellungen, etc. verwendet werden.

Videre basiert auf Silk.NET

using System;
using System.Buffers;
using System.Buffers.Binary;
using System.IO.Pipelines;
using System.Numerics;
using System.Threading.Tasks;
namespace PipelinesDemo
{
class Program
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Pipelines" Version="4.7.1" />
using System;
using System.Collections.Generic;
using Unity.Burst;
using Unity.Collections;
using Unity.Entities;
using Unity.Jobs;
using Unity.Mathematics;
using Unity.Transforms;
using UnityEngine;
using static Unity.Mathematics.math;