Skip to content

Instantly share code, notes, and snippets.

View demicuz's full-sized avatar
🤖
beep boop

Denis Mazurak demicuz

🤖
beep boop
View GitHub Profile
@demicuz
demicuz / Colemak mod-DH ANSI with QWERTY hot keys
Last active December 1, 2017 20:34
This AutoHotKey script preserves QWERTY key combinations. I'm pretty shure it could be done in a better way. Toggling languages currently doesn't work.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
ScrollLock::Suspend, Toggle
; Colemak Mod-DH mapping for ANSI boards
~Ctrl::Suspend, On
~Ctrl Up::Suspend, Off
@demicuz
demicuz / colemak-mod-dh.ahk
Last active January 1, 2019 01:42
Colemak mod-DH with QWERTY hot keys and support for painless keyboard language switching
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
; SendMode Input ; Uncomment if keys start to glitch
; SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Colemak Mod-DH mapping for ANSI boards
; Note - shift is pressed first
Shift & LAlt::
Suspend
@demicuz
demicuz / test_fast_compilation.frag
Created January 21, 2018 20:19
VEDA issue (fast compilation time)
/*
{
server: 3000
}
*/
precision mediump float;
uniform float time;
uniform vec2 resolution;
@demicuz
demicuz / test_slow_compilation.frag
Created January 21, 2018 20:20
VEDA issue (slow compilation time)
/*
{
server: 3000
}
*/
precision mediump float;
uniform float time;
uniform vec2 resolution;
/*
{
server: 3000
}
*/
precision mediump float;
uniform float time;
uniform vec2 resolution;
@demicuz
demicuz / torus_thing.frag
Last active January 21, 2018 21:57
For a VEDA issue. A past version of this: shadertoy.com/view/lt2fDz
/*
{
"server": 3000
}
*/
// original: shadertoy.com/view/lt2fDz
// this is an outdated version
precision mediump float;
1509
1857
1736
1815
1576
1970
1567
1778
1508
1833
13-15 c: cqbhncccjsncqcc
2-3 v: zvdvfd
9-14 b: rbrbnbbbqdfrht
11-12 k: kkkkkkkkkkxqk
4-5 b: bqbbdm
10-12 w: kwwkwwwrwzzwwwwzwswx
1-11 g: grrmgmqgghw
4-5 m: mbmhmvmwdvxmvpw
1-13 n: ndnnnnnnnnnns
11-18 l: lllllllllllllllllll
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
::.larr::{U+2190} ; ←
::.uarr::{U+2191} ; ↑
::.rarr::{U+2192} ; →
::.darr::{U+2193} ; ↓
::.para::{U+00B6} ; ¶
::.wequal::{U+2248} ; ≈
::.tri::{U+25B3} ; △
@demicuz
demicuz / aceconfig.js
Last active April 27, 2021 08:50
Additional keyboard bindings for shaderoo.org, plus a minor improvement. Can be used with an extension such as "Custom Javascript for Websites".
editor.commands.addCommand({
name: 'ApplyShaderCode',
bindKey: {win: 'Alt-Enter', mac: 'Alt-Enter'},
exec: function(editor) {
reloadShadersAndRedraw();
},
readOnly: true
});
editor.commands.addCommand({