most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| # # act like GNU screen | |
| unbind C-b | |
| set -g prefix C-a | |
| # Allow C-A a to send C-A to application | |
| bind C-a send-prefix | |
| # start window index of 1 | |
| set -g base-index 1 |
Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.
q
The query string to convert to audio
tl
Translation language, for example, ar for Arabic, or en-us for English
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
| // {{compare unicorns ponies operator="<"}} | |
| // I knew it, unicorns are just low-quality ponies! | |
| // {{/compare}} | |
| // | |
| // (defaults to == if operator omitted) | |
| // | |
| // {{equal unicorns ponies }} | |
| // That's amazing, unicorns are actually undercover ponies | |
| // {{/equal}} | |
| // (from http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates/) |
| // swap the keybindings for paste and paste_and_indent | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" } |
| /* | |
| * This decorates Handlebars.js with the ability to load | |
| * templates from an external source, with light caching. | |
| * | |
| * To render a template, pass a closure that will receive the | |
| * template as a function parameter, eg, | |
| * T.render('templateName', function(t) { | |
| * $('#somediv').html( t() ); | |
| * }); | |
| * Source: https://github.com/wycats/handlebars.js/issues/82 |
| # default.custom.yaml | |
| # save it to: | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| patch: | |
| schema_list: | |
| - schema: luna_pinyin # 朙月拼音 | |
| - schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| var _round = function(num) { | |
| if(isDecimal(num)) { | |
| var num_array = num.toString().split("."); | |
| var whole_num = parseInt(num_array[0]); | |
| var decimal_num = parseFloat("." + num_array[1]); | |
| if(decimal_num > .444444444444444 && decimal_num < .5) { | |
| decimal_num = .5; | |
| } | |
| num = whole_num + decimal_num; | |
| } |