Skip to content

Instantly share code, notes, and snippets.

View kmltml's full-sized avatar

Kamil Tomala kmltml

View GitHub Profile
@kmltml
kmltml / waves.js
Last active September 14, 2015 13:26
(function(){
var resulta, resultb
window.addEventListener('DOMContentLoaded', function () {
resulta = document.querySelector('#result-a')
resultb = document.querySelector('#result-b')
resultc = document.querySelector('#result-c')
var input = document.querySelector('input#input')
[
{ "keys": ["super+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["shift+super+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["super+right"], "command": "move", "args": {"by": "subwords", "forward": true} },
{ "keys": ["shift+super+right"], "command": "move", "args": {"by": "subwords", "forward": true, "extend": true} },
{ "keys": ["super+delete"], "command": "delete_word", "args": {"forward": true} },
{ "keys": ["super+backspace"], "command": "delete_word", "args": {"forward": false} },
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": false, "extend": true} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },
;requires graphics
.code "main"
main_v:
jal scanDevices_v
lb $0, [dbg_after_scan_dvcs.]
li $t0, int_handler
mts intv, $t0
li $t0, -1