Skip to content

Instantly share code, notes, and snippets.

Vadim Dyachenko YellowAfterlife

Block or report user

Report or block YellowAfterlife

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 simple-iso.html
<div style="text-align: center">
<canvas width="640" height="360" id="canvas">
<br>Click to change tiles.
<script type="text/javascript">(function() {
View wacom-auto-map.au3
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <SendMessage.au3>
#include <Math.au3>
Const $margin = 120 ; in px, how far to let stylus move outside the window bounds
Const $minWidth = 600 ; in px, minimum window width (not to require large movements for tiny windows)
Const $minHeight = 300 ; in px, minimum window height (ditto)
Const $pollRate = 5 ; in ms, lower is more likely to notice short taps
YellowAfterlife / raw_mouse.cpp
Last active Apr 13, 2019
My tweaks to multi-device polling code by Jake Stookey (
View raw_mouse.cpp
// raw_mouse.c - Win XP access to multiple mice via raw input
// To do:
// - Improve the method for weeding out the RDP Mouse. Find "status bits" (see below).
YellowAfterlife / killa.xml
Created Jan 22, 2019
Killa UDL for Notepad++
View killa.xml
<UserLang name="Killa" ext="kia txm" udlVersion="2.0">
<Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
<Keywords name="Comments" id="0">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, additional" id="1"></Keywords>
<Keywords name="Numbers, prefixes" id="2">0x</Keywords>
YellowAfterlife / array_foreach.gml
Created Sep 1, 2018
Coroutine output from GMEdit
View array_foreach.gml
var l_ctx = argument[0];
if (!is_array(l_ctx)) {
l_ctx = array_create(6);
var l_argc = argument_count - 1;
var l_args = array_create(l_argc);
while (--l_argc >= 0) l_args[@l_argc] = argument[l_argc + 1];
l_ctx[2/* args */] = l_args;
return l_ctx;
var l_args = l_ctx[2/* args */];
View keyboard_key.gml
//{ keyboard_key
#define keyboard_key_get_code
/// keyboard_key_get_code(name:string):int
var r = keyboard_key_codes[?string_lower(argument[0])];
if (!is_undefined(r)) return r;
return -1;
#define keyboard_key_get_name
/// keyboard_key_get_name(code:int):string
var code = argument[0];
var r = keyboard_key_names[?code];
YellowAfterlife / Player.hx
Last active Dec 1, 2017
Terraria 1.3 character file format implementation in Haxe
View Player.hx
package terra;
import openfl.Lib;
import openfl.utils.ByteArray;
import openfl.utils.Endian;
import Ext.cfor;
using utils.ByteArrayTools;
* ...
YellowAfterlife / gamemaker_reddit.user.js
Last active Nov 24, 2017
A userscript that introduces syntax highlighting for code snippets posted on /r/gamemaker
View gamemaker_reddit.user.js
// ==UserScript==
// @name /r/gamemaker syntax highlighting
// @namespace
// @include*
// @include*
// @author YellowAfterlife
// @description Syntax highlighting for /r/gamemaker ~
// @license
// @version 1.100
// @grant none
View BouncingLootEffects.hx
import js.Browser.*;
import js.html.CanvasElement;
import js.html.CanvasRenderingContext2D;
import js.html.HTMLDocument;
import js.html.MouseEvent;
import sf.test.Test.Entity;
* @author YellowAfterlife
YellowAfterlife / Ext.hx
Created Jan 5, 2017
Woes with import.hx
View Ext.hx
class Ext {
public static function test(v:Any) trace(v);
You can’t perform that action at this time.