This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Figma Mouse Wheel Speed Fix | |
// @namespace https://adam.nels.onl | |
// @match https://www.figma.com/* | |
// @grant none | |
// ==/UserScript== | |
// Mouse wheel scrolling in Figma on Firefox + Linux is unbearably slow. | |
// | |
// This script catches all mouse wheel events on the main canvas, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE UnicodeSyntax #-} | |
-- SIP hash in pure Haskell | |
-- Original C reference implementation taken from (github.com/veorq/SipHash) | |
-- Translated to Haskell by Adam R. Nelson (github.com/ar-nelson) | |
-------------------------------------------------------------------------------- | |
module Data.Digest.SIP(sipHash) where | |
import Control.Monad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
node ~/.wmii-hg/wmiirc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dialog = require('./lib/dialog.js'); | |
var wmii = require('./lib/wmii.js'); | |
var wmiir = require('./lib/wmiir.js'); | |
var modkey = 'Mod4'; | |
var terminal = 'urxvt'; | |
function attachModKey(mode) { | |
var newMode = {}; | |
for (var key in mode) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wmii core Module | |
// Adam R. Nelson | |
// August 2013 | |
var wmiir = require('./wmiir.js'); | |
var events = require('./wmii_events.js'); | |
var keys = require('./wmii_keys.js'); | |
var dialog = require('./dialog.js'); | |
var spawn = require('child_process').spawn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// zenity dialog box functions | |
// Adam R. Nelson | |
// August 2013 | |
var spawn = require('child_process').spawn; | |
function appendSettings(args, settings) { | |
if (settings) { | |
if (settings.ok) { | |
args.push('--ok-label'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wmii keybindings and keyboard event module | |
// Adam R. Nelson | |
// August 2013 | |
var wmiir = require('./wmiir.js'); | |
var events = require('./wmii_events.js'); | |
var globalKeys = {}; | |
var modeKeys = {}; | |
var currentMode = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = require('./wmii_events.js'); | |
var stdin = process.openStdin(); | |
events.on('Key', function(key) { | |
console.log('Keypress: ' + key); | |
}); | |
console.log("Press ENTER to exit."); | |
stdin.on('data', function(data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wmii event handler module | |
// Adam R. Nelson | |
// August 2013 | |
var events = require('events'); | |
var util = require('util'); | |
var wmiir = require('./wmiir.js'); | |
function WmiiEvents() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Hello, world!'); |
NewerOlder