Skip to content

Instantly share code, notes, and snippets.

View ivyxjc's full-sized avatar

ivyxjc ivyxjc

View GitHub Profile
@ivyxjc
ivyxjc / smart-caps-lock.md
Last active April 30, 2024 05:48 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@ivyxjc
ivyxjc / GenerateEntityPOJO.groovy
Created April 15, 2019 09:59 — forked from virtualadrian/GenerateEntityPOJO.groovy
IntelliJ Generators For Entity ( JPA Entity, View Model, Rest Controller ) - WIP plz comment with desires -
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper