(based on http://mathjax-tw5.kantorsite.net/)
To use with NodeJS create a plugins/mathjax/ directory in your wiki containing the two files (plugin.info and init.js), i.e.
plugins/
mathjax/
plugin.info
init.js
tiddlers/
| { | |
| "title": "CapsLock / Control / Tab", | |
| "rules": [ | |
| { | |
| "description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { |
| { | |
| "title": "Switch input source | 输入法切换", | |
| "rules": [ | |
| { | |
| "description": "Tap Command_L (⌘) → Switch input source to English | 短按左 Command (⌘) → 切换到英文输入法", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "input_sources": [ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <dict> | |
| <key>com.google.Chrome</key> |
(based on http://mathjax-tw5.kantorsite.net/)
To use with NodeJS create a plugins/mathjax/ directory in your wiki containing the two files (plugin.info and init.js), i.e.
plugins/
mathjax/
plugin.info
init.js
tiddlers/
| -- TerminalVim.app | |
| -- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
| -- To use this script: | |
| -- 1. Open Automator and create a new Application | |
| -- 2. Add the "Run Applescript" action | |
| -- 3. Paste this script into the Run Applescript section | |
| -- 4. Save the application as TerminalVim.app in your Applications folder | |
| -- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default | |
| on run {input, parameters} |
| -- TerminalVim.app | |
| -- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
| -- To use this script: | |
| -- 1. Open Automator and create a new Application | |
| -- 2. Add the "Run Applescript" action | |
| -- 3. Paste this script into the Run Applescript section | |
| -- 4. Save the application as TerminalVim.app in your Applications folder | |
| -- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default |
| public static String getFilecharset(File sourceFile) { | |
| String charset = "GBK"; | |
| byte[] first3Bytes = new byte[3]; | |
| try { | |
| BufferedInputStream bis = new BufferedInputStream(new FileInputStream(sourceFile)); | |
| bis.mark(0); | |
| int read = bis.read(first3Bytes, 0, 3); | |
| System.out.println("字节大小:"+read); | |
| if (read == -1) { | |
| return charset; //文件编码为 ANSI |