Skip to content

Instantly share code, notes, and snippets.

View ar-tama's full-sized avatar

Makoto Arata ar-tama

View GitHub Profile
@ar-tama
ar-tama / init.lua
Last active January 21, 2024 18:23
my hammerspoon config
-- 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()
@ar-tama
ar-tama / bit
Created October 21, 2013 11:29
hubのミニマム版。GitHubだけではなく、bitbucket, GH:eにも対応。 リポジトリ(fetch)を開く、p-r画面を開く、ブランチを比較する、p-rをみる、issueをみることができます。
#! /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.',
},