Skip to content

Instantly share code, notes, and snippets.

Maik Klein MaikKlein

Block or report user

Report or block MaikKlein

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View train.csv
0h 0m 58s 7519 weapon_smokegrenade daps T setpos -891.936401 1518.409180 -222.968750; setang 345.866089 303.991699 0.0
0h 1m 0s 7708 weapon_smokegrenade Ethan T setpos -930.221191 1487.109985 -223.969193; setang 336.549683 305.914307 0.0
0h 1m 4s 8201 weapon_smokegrenade gla1ve CT setpos 971.544250 500.141937 -219.968750; setang 6.696167 210.031128 0.0
0h 1m 4s 8278 weapon_flashbang Ethan T setpos -415.515289 1301.937866 -86.902039; setang 353.182983 296.394653 0.0
0h 1m 6s 8460 weapon_flashbang Ethan T setpos -399.868011 1296.679810 -86.902039; setang 351.106567 270.060425 0.0
0h 1m 6s 8544 weapon_molotov daps T setpos -669.491943 476.806671 -217.569275; setang 349.568481 350.106812 0.0
0h 1m 6s 8564 weapon_hegrenade gla1ve CT setpos 1055.771729 473.967987 -216.623047; setang 347.387695 206.608887 0.0
0h 1m 31s 11672 weapon_hegrenade Xyp9x CT setpos 891.287781 65.155281 -215.968750; setang 350.255127 147.672729 0.0
0h 1m 35s 12203 weapon_flashbang Xyp9x CT setpos
View nades.md

Pro nades

This document contains a list of common nades that are using in a professional setting. All nades are recorded on 128 tick. Nades that don't work on 64 tick will have an addiontal setpos command.

Server config

nade.cfg

// Config for server
sv_cheats 1
sv_infinite_ammo 1
View wasm
hello_world npm run serve
> @ serve /home/maik/src/hello_world
> webpack-dev-server
🧐 Checking for wasm-pack...
✅ wasm-pack is installed.
ℹ️ Compiling your crate in development mode...
View test
use character::{Kalak};
use monsters::{Thunderclast};
@{Ref = "Description on a Thunderclast", Tunderclast}
@Kalak rounded a rocky stone ridge and stumbled to a stop before the body of a dying thunderclast. The enormous stone beast lay on its side, riblike protrusions from its chest broken and cracked. The monstrosity was vaguely skeletal in shape, with unnaturally long limbs that sprouted from granite shoulders. The eyes were deep red spots on the arrowhead face, as if created by a fire burning deep within the stone. They faded.
@{Ref = "First Death", Kalak}
Even after all these centuries, seeing a thunderclast up close made @Kalak shiver. The beast’s hand was as long as a man was tall. He’d been killed by hands like those before, and it hadn’t been pleasant.
Of course, dying rarely was.
View taylor.py
from sympy import *
from sympy.plotting import plot3d
import mpmath as mp
import numpy as np
x = Symbol('x')
y = Symbol('y')
f = exp(x / 2) * sin(y)
fx = f.diff(x)
fy = f.diff(y)
View raycasting.rs
use rlsl_math::prelude::*;
use rlsl_math::Array;
#[derive(Copy, Clone)]
pub struct Ray {
pub origin: Vec3<f32>,
pub dir: Unit<Vec3<f32>>,
}
impl Ray {
pub fn position(self, t: f32) -> Vec3<f32> {
View gist:7b07d5b2b98e7d358c64a5a907bece1f
vkCreateDescriptorPool(device, pCreateInfo, pAllocator, pDescriptorPool) returns VkResult VK_SUCCESS (0):
device: VkDevice = 0x5569676a2a00
pCreateInfo: const VkDescriptorPoolCreateInfo* = 0x7fff73a4e430:
sType: VkStructureType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO (33)
pNext: const void* = NULL
flags: VkDescriptorPoolCreateFlags = 0
maxSets: uint32_t = 50
poolSizeCount: uint32_t = 1
pPoolSizes: const VkDescriptorPoolSize* = 0x556967836080
pPoolSizes[0]: const VkDescriptorPoolSize = 0x556967836080:
View glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
View keybase.md

Keybase proof

I hereby claim:

  • I am maikklein on github.
  • I am maikklein (https://keybase.io/maikklein) on keybase.
  • I have a public key ASBrzEF8rkCJynxbssNbKf4PAdA0DWRMtryn9R0Elpkhtgo

To claim this, I am signing this object:

View ray.spv
; SPIR-V
; Version: 1.0
; Generator: Google rspirv; 0
; Bound: 1822
; Schema: 0
OpCapability Shader
OpExtension "SPV_KHR_storage_buffer_storage_class"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %28 "fragment" %43 %47 %53
You can’t perform that action at this time.