Skip to content

Instantly share code, notes, and snippets.

Avatar
👁️‍🗨️
eyes wide shut

kvdrrrrr

👁️‍🗨️
eyes wide shut
View GitHub Profile
@kvdrrrrr
kvdrrrrr / EnumGetValuesEvaluator.cs
Last active Jul 22, 2021
Evaluates all calls to Enum.GetValues at build time, since it's not supported in NativeAOT's reflection-free mode yet.
View EnumGetValuesEvaluator.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using dnlib.DotNet;
using dnlib.DotNet.Emit;
namespace EnumGetValuesEvaluator
{
internal static class Program
View gist:c06aa208fb924bab490ffd8420d4c851
sudo apt install g++-mingw-w64-x86-64
make PLATFORM=mingw64
@kvdrrrrr
kvdrrrrr / bundle-cmp.js
Last active Apr 13, 2017
epic donttap src hack
View bundle-cmp.js
/*
(c) 2013-2014 GameMix Inc. All rights reserved.
*/
(function() {
var requestAnimFrame = window.requestAnimFrame = function() {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) {
window.setTimeout(callback, 1e3 / 60)
}
}();
var cancelAnimFrame = window.cancelAnimFrame = function() {
View gist:ef3cb7f4cea260d4c0a0fcea8742efa8
From 226564630605fc1d57959b9edca3562a15f5fe82 Mon Sep 17 00:00:00 2001
From: kvdrrrrr <bkch233@gmail.com>
Date: Mon, 20 Feb 2017 17:19:12 +0100
Subject: [PATCH] Implement ghetto cheat cvars
---
Sources/Client/Client.cpp | 7 +++-
Sources/Client/Client.h | 3 +-
Sources/Client/Client_Draw.cpp | 71 +++++++++++++++++++++++++------------
Sources/Client/Client_LocalEnts.cpp | 4 ++-
@kvdrrrrr
kvdrrrrr / git-origins.md
Created Dec 26, 2016 — forked from benschw/git-origins.md
fork a repo manually (set source as upstream origin) rather than with the "fork" button. e.g. for in github when you want to fork a project twice.
View git-origins.md

Ripped off from adrianshort.org

List curent remotes

$ git remote -v

origin  https://github.com/hakimel/reveal.js.git (fetch)
origin  https://github.com/hakimel/reveal.js.git (push)

Rename origin to upstream and add our new empty repo as the origin.