Skip to content

Instantly share code, notes, and snippets.

View ricky9667's full-sized avatar
๐Ÿ‡น๐Ÿ‡ผ

Ricky Hu ricky9667

๐Ÿ‡น๐Ÿ‡ผ
View GitHub Profile
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map \r to the Reformat Code action
"map \r <Action>(ReformatCode)
"" Map <leader>d to start debug
"map <leader>d <Action>(Debug)
"" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint)
@ricky9667
ricky9667 / karabiner_hyper_q_to_lock.json
Created July 8, 2024 16:48
Karabiner Elements: hyper-q to lock
{
"description": "hyper-q to lock",
"manipulators": [
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
@ricky9667
ricky9667 / karabiner_hyper_z_to_sleep.json
Created July 8, 2024 16:46
Karabiner Elements: hyper-z to sleep
{
"description": "hyper-z to sleep",
"manipulators": [
{
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
@ricky9667
ricky9667 / karabiner_toggle_chinese_english.json
Last active July 8, 2024 16:44
Karabiner Elements: Toggle Chinese English With caps_lock, hyper key if held
{
"description": "Toggle Chinese English With caps_lock, hyper key if held",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"left_control"
]
{
"Profiles": [{
"Ansi 5 Color": {
"Green Component": 0.3333333432674408,
"Blue Component": 0.80000001192092896,
"Red Component": 0.80000001192092896
},
"Tags": [
],
fun countOccurringWords(str: String): String {
val textMap: HashMap<String, Int> = HashMap<String, Int>()
val textList = str.split(" ").toTypedArray()
// Filter string into a map by text
for (text in textList) {
if (!containsAppierChars(text)) continue
if (textMap.containsKey(text)) {
val times = textMap.getValue(text)
@ricky9667
ricky9667 / mac_setup.md
Last active July 29, 2022 09:53
My Mac Setup

๐Ÿ’ป My Mac Setup

โš™๏ธ System Settings

  • Three finger drag
  • Hide recent apps in dock
    • System Preferences -> Dock & Menu Bar -> Uncheck "Show recent applications in Dock"

๐Ÿ–ฅ Terminal Setup