Skip to content

Instantly share code, notes, and snippets.

View dougmarcey's full-sized avatar

Doug Marcey dougmarcey

  • Northern VA, USA
  • 05:06 (UTC -04:00)
View GitHub Profile
#!/usr/bin/perl
# Tool to convert Ergodox-EZ Configurator generated keymaps
# to somthing a little easier to read/work with.
#
# runs like:
# cleanup.rb [downloaded keymap.c] > [destination keymap.c]
open(FILE,$ARGV[0]) || die "Can't open the file [$!]\n";
local $/;
#!/usr/bin/perl
# Tool to convert Ergodox-EZ Configurator generated keymaps
# to something a little easier to read/work with.
#
# runs like:
# cleanup.rb [downloaded keymap.c] > [destination keymap.c]
open(FILE,$ARGV[0]) || die "Can't open the file [$!]\n";
local $/;
#!/usr/bin/ruby
# Tool to convert Ergodox-EZ Configurator generated keymaps
# to something a little easier to read/work with.
#
# runs like:
# cleanup.rb [downloaded keymap.c] > [destination keymap.c]
def fix_keymap(km_str)