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
-- remap functions | |
local function keyCode(key, mods, callback) | |
mods = mods or {} | |
callback = callback or function() end | |
return function() | |
hs.eventtap.event.newKeyEvent(mods, string.lower(key), true):post() | |
hs.timer.usleep(1000) | |
hs.eventtap.event.newKeyEvent(mods, string.lower(key), false):post() | |
callback() |
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
#! /usr/local/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Compact::WithCmd; | |
my $go = Getopt::Compact::WithCmd->new( | |
command_struct => { | |
open => { | |
desc => 'open repo url.', | |
}, |