Skip to content

Instantly share code, notes, and snippets.

View kristiker's full-sized avatar
:fishsticks:

Kristi K. kristiker

:fishsticks:
  • Tirana, Albania
  • 06:02 (UTC +02:00)
View GitHub Profile
import sys
import time
import shutil
from pathlib import Path
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class FileHandler(FileSystemEventHandler):
def __init__(self, src_folder: Path, dest_folder: Path):
self.src_folder = src_folder
//
// Remove duplicate values from an array
//
Span<int> nums = new int[] { 0, 0, 6, 1, 2, 4, 6, 5, 2, 1, 0};
Span<T> remove_dupes<T>(Span<T> nums) where T : IEquatable<T>
{
int unique_cursor = 0;
for (int i = 0; i < nums.Length; i++)
//=================================================================================================
// Reconstructed with VRF - https://vrf.steamdb.info/
//=================================================================================================
HEADER
{
Description = "Shader used by the particle system";
DevShader = true;
Version = 0;
}
MODES
// VULKAN[6] source bytes (39936) ref=5b6d78009026a5acc5e0a9f79e9b14dc
// SPIR-V source (39844), Glsl reflection with SPIRV-Cross, KhronosGroup
// D_BAKED_LIGHTING_FROM_LIGHTMAP == 1
// D_COMPRESSED_NORMALS_AND_TANGENTS == 0
// D_BLEND == 0
// vs[0][20]
// ps[0](6)
// Stage: VS
@kristiker
kristiker / source2-technologies.md
Last active July 7, 2023 20:08
Tech used in Source 2 Engine
library("rvest")
library("anytime")
# From https://steamdb.info/app/730/patchnotes/
patchnotes <- read_html("C:/Users/kristi/Documents/Counter-Strike_ Global Offensive (App 730) · Patches and Updates · SteamDB.html")
update_timestamps <- patchnotes %>%
html_nodes("tbody") %>%
.[[2]] %>%
@kristiker
kristiker / kenget.txt
Created February 26, 2022 19:32
Provim C++
kenge1 3.1 kenge2 2.9 kenge3 4.4 neser 2.8 kurre 3.3332
@kristiker
kristiker / match_history_analyse.py
Last active November 25, 2021 18:25
Analyse your CS:GO Match History Data
"""
Analyse your CS:GO Match History Data
Original by DrMarioCSGO
https://pastebin.com/v5EVZMTq
https://www.reddit.com/r/GlobalOffensive/comments/qvdf4v/
Requirements:
pip install pandas
pip install matplotlib
@kristiker
kristiker / deathcry_preview.nut
Last active September 27, 2021 00:23
CS:GO MIGI3 VScript: Loop through each player model
// =========================================================================================
// THIS FILE WAS GENERATED BY MIGI
// =========================================================================================
//
// VScripts example, can be used on hosts to play around with entities.
// They use a language called Squirrel and have its most basic functionalities.
// For the rest use CS:GO's implementations listed bellow.
// Not much can be done without events, no way to add them to this system for now.
//
// Documentation:
// launch options: -dallow_third_party_software -novid -language bananagaming +clientport 27006
con_enable "1" //Enables console
cl_autowepswitch "0" //Disable auto-weapon switch
cl_join_advertise "2" //Let friends join your community servers
cl_showloadout "1"
snd_mixahead "0.017"
snd_hrtf_distance_behind "35"
snd_headphone_pan_exponent "10.0"