Skip to content

Instantly share code, notes, and snippets.

Vincent Law vlaw

Block or report user

Report or block vlaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View capslock_hjkl_fn.json
{
"title": "Caps Lock (Fn) + HJKL",
"rules": [
{ "description": "Caps Lock to Fn",
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "fn"}]}] },
{ "description": "Fn + H/J/K/L to Arrow Keys",
"manipulators": [
{"type": "basic", "from": {"key_code": "h", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}]},
View capslock_hjkl_fn.json
{
"title": "Caps Lock (Fn) + HJKL",
"rules": [
{ "description": "Caps Lock to Fn",
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "fn"}]}] },
{ "description": "Fn + H/J/K/L to Arrow Keys",
"manipulators": [
{"type": "basic", "from": {"key_code": "h", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}]},
@vlaw
vlaw / actionlist.vim
Created Jul 5, 2018 — forked from zchee/actionlist.vim
IdeaVim actionlist
View actionlist.vim
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@vlaw
vlaw / GIF-Screencast-OSX.md
Created Sep 10, 2016 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@vlaw
vlaw / Dockerfile of idea
Last active Jul 14, 2016
idea_lic_server_Dockerfile
View Dockerfile of idea
FROM ubuntu
MAINTAINER vlaw
ENV REFRESHED_AT 2016-07-14
# RUN apt-get -qq update
# 将IntelliJIDEALicenseServer_linux_amd64放置到当前目录
ADD IntelliJIDEALicenseServer_linux_amd64 /root
EXPOSE 1017
# build
You can’t perform that action at this time.