Replace tgram://bottoken/ChatID
to your tg bot.
This file contains hidden or 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
#!/bin/bash | |
# ============================================================================ | |
# 脚本名称:switch_input_method.sh | |
# | |
# 功能简介: | |
# 本脚本用于配合 yabai 的 window_focused 信号,实现以下自动化功能: | |
# - 每次窗口聚焦时,根据窗口 ID 查询应用名称 | |
# - 根据不同应用自动切换到英文或中文输入法(通过 macism 命令) | |
# - 并将当前窗口的 ID、应用名、窗口标题及切换记录写入日志,方便调试 |
Test on:
- Linux
- macOS
Linux dependencies:
- xsel
~/.local/bin/kitty_emacs_pager
复制 App ID 和 App Key 填入 backup.py 的 client_id
和 client_secret
rye pin 3.11
rye add requests
rye sync
cp ddns.service /etc/systemd/system/ddns.service
sudo systemctl enable ddns.service
sudo systemctl start ddns.service
Ref: https://github.com/fire1ce/DDNS-Cloudflare-Bash#requirements
This file contains hidden or 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
PROMPT="$fg[cyan]%}$USER@%{$fg[green]%}%m " | |
PROMPT+="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
This file contains hidden or 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
package info.dourok.androidx.databinding | |
import androidx.databinding.ViewDataBinding | |
import androidx.lifecycle.GenericLifecycleObserver | |
import androidx.lifecycle.Lifecycle.Event.ON_START | |
import androidx.lifecycle.LifecycleObserver | |
import androidx.lifecycle.LifecycleOwner | |
import java.lang.ref.WeakReference | |
import java.util.WeakHashMap |
I hereby claim:
- I am douo on github.
- I am douo (https://keybase.io/douo) on keybase.
- I have a public key ASAQODR5d3WbIv6rb_fA0x5ThgafJdlcrttE9jV8HKu9KQo
To claim this, I am signing this object:
This file contains hidden or 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
Classfile ./com/company/LambdaTest.class | |
Last modified 2017-10-11; size 1296 bytes | |
MD5 checksum 7ac0bf40633d31a57673577fde0a699d | |
Compiled from "LambdaTest.java" | |
public class com.company.LambdaTest | |
minor version: 0 | |
major version: 52 | |
flags: ACC_PUBLIC, ACC_SUPER | |
Constant pool: | |
#1 = Methodref #8.#25 // java/lang/Object."<init>":()V |
This file contains hidden or 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
import com.intellij.openapi.actionSystem.AnActionEvent | |
import static liveplugin.PluginUtil.* | |
/** | |
* 将当前单词或下一个单词转换为首字母大写 | |
*/ | |
registerAction("Capitalize Word", "alt C") { AnActionEvent event -> | |
runDocumentWriteAction(event.project) { | |
currentEditorIn(event.project).with { |
NewerOlder