Skip to content

Instantly share code, notes, and snippets.

View kg's full-sized avatar

Katelyn Gadd kg

View GitHub Profile
@kg
kg / text.txt
Created September 30, 2021 17:31
Deathloop spoilery Q&A + theories
Deathloop spoilers ahead (mostly earlier-game stuff in this section)
* Why do only Cole and Julianna remember?
Cole and Julianna aren't the only ones who remember. 2-Bit also
remembers, and he's made out of part of Charlie's brain. So why
doesn't Charlie remember? Wenjie's lab has at least one note where
she explicitly calls out that Cole and Julianna remember the loops
@kg
kg / userContent.css
Last active May 25, 2021 21:43
Funimation userstyle to make its web player not awful
@-moz-document domain("www.funimation.com")
{
div.ribbon, section.header-promo-ribbon-wrap {
display: none !important;
}
main#main-content {
padding: 0px !important;
}
@kg
kg / gist:a1fbdd2a68c76d85bebcbc8be98b4609
Created January 29, 2021 16:46
Current bindings benchmark timings
| Method | Mean | Error | StdDev | Median | Min | Max | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------------------------------------------------- |-------------:|------------:|------------:|-------------:|-------------:|-------------:|--------:|------:|------:|----------:|
| CallMethod_Void | 6,500.488 us | 128.9937 us | 132.4670 us | 6,421.108 us | 6,386.649 us | 6,794.649 us | - | - | - | 2 B |
| CallMethod_Sum | 6,825.421 us | 46.6149 us | 41.3229 us | 6,832.778 us | 6,737.056 us | 6,900.194 us | - | - | - | 16,018 B |
| CallMethod_ConcatString | 8,885.143 us | 67.5927 us | 59.9192 us | 8,890.518 us | 8,783.607 us | 8,991.107 us | - | - | - | 96,043 B |
| CallMethod_ReturnString | 8,345.665 us | 66.346
1> FNA3D.vcxproj -> E:\Documents\Projects\FNA3D\visualc\..\..\FNALibs\x64\FNA3D.dll
Target RunNativeCodeAnalysis:
e:\documents\projects\fna3d\mojoshader\mojoshader.c(474): warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead.
e:\documents\projects\fna3d\mojoshader\mojoshader.c(2763): warning C6246: Local declaration of 'len' hides declaration of the same name in outer scope. For additional information, see previous declaration at line '2571' of 'e:\documents\projects\fna3d\mojoshader\mojoshader.c'.
e:\documents\projects\fna3d\mojoshader\mojoshader.c(3462): warning C6011: Dereferencing NULL pointer 'retval->output'.
e:\documents\projects\fna3d\mojoshader\mojoshader.c(3473): warning C6011: Dereferencing NULL pointer 'binary'. See line 3462 for an earlier location where this can occur
e:\documents\projects\fna3d\mojoshader\mojoshader.c(3589): warning C6246: Local declaration of 'usage' hides declaration of the same name in outer scope. For a
// 0(45) : error C7011: implicit cast from "float" to "int"
#version 120
uniform vec4 vs_uniforms_vec4[12];
uniform float vpFlip;
const vec4 vs_c12 = vec4(0.5, 0.159154935, 0.25, 6.283185478);
const vec4 vs_c13 = vec4(-3.141592739, -0.000000252, 0.00002476, -0.001388839);
const vec4 vs_c14 = vec4(0.041666641, 1.0, 0.0, 0.0);
vec4 vs_r0;
vec4 vs_r1;
@if [%6]==[] goto error
@goto ok
:error
@echo USAGE: video2gif START_TIME DURATION WIDTH FRAME_RATE (DITHER_OPTIONS) (CROP_RECTANGLE width:height:x:y) (EQ_OPTIONS) INPUT OUTPUT
@goto end
:ok
@set PALETTE="%TEMP%\palette.png"
function (a) {
var _window = this, g2 = '', g3 = 0, g5 = {}, stringJoin = function () {
return a.makeArray(arguments).join('');
};
g5.contentType = 'application/json', g5.dataType = 'json', g5.type = 'POST';
var f5 = function (a, b, c, d) {
var f3 = function () {
d() ? f6(a) : (a !== 4001 && (b += c), g4(2, b));
};
g4(f3, b);
[ProtoContract]
public partial class GameState {
public const int MinimumFormatVersion = 29;
public const int CurrentFormatVersion = 30;
[ProtoMember(1, IsRequired = true)]
public readonly int FormatVersion;
[ProtoMember(2, IsRequired = true)]
public readonly MersenneTwister.Snapshot RNG;
[ProtoMember(3, IsRequired = true)]
@kg
kg / test.js
Created October 10, 2019 23:18
const instance = new WebAssembly.Instance(wasmModule, {});
const { count } = instance.exports;
var limit = 50000;
var speed = 100;
var res = null;
for (i = 0; i < limit; i += speed) {
try {
res = count(i, 0);
1>CoreCompile: 1> E:\Visual Studio 2017\MSBuild\15.0\Bin\Roslyn\csc.exe
/noconfig /unsafe+ /nowarn:1701,1702,2008 /nostdlib+ /platform:x86
/errorreport:prompt /warn:4 /define:DEBUG /errorendlocation
/preferreduilang:en-US /highentropyva+ /reference:"C:\Program Files
(x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\mscorlib.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Core.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.dll" /debug+
/debug:full /optimize- /out:obj\x86\Debug\FNA.dll /ruleset:"E:\Visual Studio