Skip to content

Instantly share code, notes, and snippets.

View kg's full-sized avatar

Katelyn Gadd kg

View GitHub Profile
// 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);
(function () {
this.i18n = {
/*
Strings for japanese can be added like so:
"name": {
"en": "Romaji"
},
->
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
{
"NamedVariables": {
"Velocity.Constant": {
"ValueType": "Microsoft.Xna.Framework.Vector3",
"Bezier": {
"Mode": 513,
"Count": 2,
"MinValue": 0.0,
"MaxValue": 7.549999,
"A": "-36.10164, -67.20737, 0",
@kg
kg / bear.cs
Created June 10, 2019 02:48
Automatic code generation
// Machine-generated from 'C:\Users\Katelyn\Desktop\particle demo\bear.lumined'
using System;
using Squared.Illuminant.Particles;
using Microsoft.Xna.Framework;
using C_RS = Squared.Render.Convenience.RenderStates;
using G_BS = Microsoft.Xna.Framework.Graphics.BlendState;
namespace Squared.Illuminant.Compiled {
kate@reeir-debian2:~/Projects/mono/mcs/build$ tail -f compiler-server.log
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LanguageParser..ctor (Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.Lexer lexer, Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode oldTree, System.Collections.Generic.IEnumerable`1[T] changes, Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LexerMode lexerMode, System.Threading.CancellationToken cancellationToken) [0x0000b] in <d6728d536b884cd2af1698e1ee49045c>:0
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, System.String path, System.Threading.CancellationToken cancellationToken) [0x00024] in <d6728d536b884cd2af1698e1ee49045c>:0
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions options, System.String path, System.Threading.CancellationToken cancellationToke