方案配置文件+详细说明:Rime+小鹤双拼+颜文字+笔画混合输入方案
实现的功能是:给小鹤双拼添加颜文字支持,直接打双拼出颜文字,支持模糊音,支持词频调整,同时不影响小鹤双拼自带的笔画反查。
要实现双拼+颜文字的功能网上已经有很多方法,但都有些弊端,这里分别简单介绍下:
| #popclip | |
| name: tts | |
| icon: iconify:ri:speak-line | |
| interpreter: /bin/sh | |
| shell script: | | |
| /path/to/edge-playback --rate="${POPCLIP_OPTION_RATE:-+20%}" --voice "${POPCLIP_OPTION_VOICE:-zh-CN-XiaoxiaoNeural}" --text "$POPCLIP_TEXT" | |
| options: | |
| - identifier: rate | |
| label: Rate (default +20%) | |
| type: string |
| mkdir -p _output | |
| for i in *.svg | |
| do | |
| inkscape --actions="select-all;selection-ungroup;select-all;selection-ungroup;select-all;object-stroke-to-path;" --export-filename=- $i > _output/$i | |
| echo "done with "$i | |
| done |
| // way 1: | |
| /** | |
| * Replace all SVG images with inline SVG | |
| */ | |
| jQuery('img.svg').each(function(){ | |
| var $img = jQuery(this); | |
| var imgID = $img.attr('id'); | |
| var imgClass = $img.attr('class'); | |
| var imgURL = $img.attr('src'); |
| tell application "Finder" | |
| set randomimage to some file of folder ((path to home folder as string) & "Pictures") as string | |
| end tell | |
| tell application "System Events" | |
| tell every desktop | |
| set random order to false | |
| set picture to randomimage | |
| end tell | |
| end tell |
| (* | |
| Open Terminal Here | |
| Written by Brian Schlining | |
| source: http://hohonuuli.blogspot.hr/2016/02/iterm2-version-3-open-iterm-here-script.html | |
| *) | |
| property debug : false | |
| -- when the toolbar script icon is clicked | |
| -- |
方案配置文件+详细说明:Rime+小鹤双拼+颜文字+笔画混合输入方案
实现的功能是:给小鹤双拼添加颜文字支持,直接打双拼出颜文字,支持模糊音,支持词频调整,同时不影响小鹤双拼自带的笔画反查。
要实现双拼+颜文字的功能网上已经有很多方法,但都有些弊端,这里分别简单介绍下:
| # shows all url+titles of Chrome along with front window+tab url+title | |
| set titleString to "" | |
| tell application "Google Chrome" | |
| set window_list to every window # get the windows | |
| repeat with the_window in window_list # for every window | |
| set tab_list to every tab in the_window # get the tabs | |
| repeat with the_tab in tab_list # for every tab |
The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics.
AutomatorApplicationActions > Utilities > Run Applescriptopen_in_iterm.app into the window.How to have some fun using the terminal.
sudo apt-get install cowsaysudo apt-get install fortunesudo apt-get install figletruby -vgem install lolcat| #!/bin/bash | |
| echo "Generating URL..." | |
| FULL_PATH="/Users/tbenzige/Projects/aws" | |
| #Count is kept based on a list.txt file | |
| #list.txt is a plain text file meant to show relationships between URLs | |
| #Instead of a running count, we just count the lines in list.txt | |
| INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)` | |
| NUM="$INITIAL/4" |