Skip to content

Instantly share code, notes, and snippets.

View KarlZeo's full-sized avatar
🔞

Zeo KarlZeo

🔞
View GitHub Profile
@KarlZeo
KarlZeo / alternative.yaml
Created June 30, 2016 03:09 — forked from yxjxx/alternative.yaml
Rime中文输入状态下也使用英文标点
###中文输入法下也使用英文标点2013/8/14 yxj
###有些用戶習慣在中文裏使用ASCII標點,那麼與其一個一個覆寫,不如 整套都換掉 。
###取得這份設定檔—— Rime 別樣設定,使用西文標點(一个gist:https://gist.github.com/lotem/2334409) 在用戶資料夾保存爲 alternative.yaml ;
###再將輸入方案中的「導入 default 設定」通過打 patch 替換爲「導入 alternative 設定」
###刚刚遇到一个问题,因为教程里面说需要这前两行,所以就直接粘贴了,但是发现模糊音失效了,找到原因是[只能有一个patch:,因为上面已经有了,所以就下面就不要了,注意缩进,两个英文空格]
###又加入了一行代码['key_binder/import_preset': alternative]作用是让[ ]可以翻页,如果一开始就用 [ 上翻页的会连高亮的字加[都一起上屏「比如你好[ 」就会这样了,哈哈
###patch:
##'punctuator/import_preset': alternative
##'key_binder/import_preset': alternative
######
@KarlZeo
KarlZeo / alternative.yaml
Created June 30, 2016 03:09 — forked from lotem/alternative.yaml
Rime 別樣設定,使用西文標點、[ ] 鍵換頁
# Rime alternative settings
# encoding: utf-8
#
# difference from default settings:
# 1. ascii-style punctuation in half-shape mode
# 2. [ ] as paging keys
#
# save this file as:
# (Linux) ~/.config/ibus/rime/alternative.yaml
# (Mac OS) ~/Library/Rime/alternative.yaml
@KarlZeo
KarlZeo / osx-for-hackers.sh
Created July 31, 2016 11:51 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@KarlZeo
KarlZeo / sublime-project.json
Created December 9, 2017 03:58 — forked from swiftcafex/sublime-project.json
Sublime 配置为 iOS 编译工具
// 完整教程请参看 http://swiftcafe.io/2016/10/24/sublime-build-ios/
{
"folders": [
{
"follow_symlinks": true,
"path": "."
}
],
"build_systems": [
{
@KarlZeo
KarlZeo / subtitle-extract.md
Created February 17, 2018 15:08 — forked from pavelbinar/extract-subtitles-from-mkv.md
Extract subtitles from *.mkv files on Mac OS X

Extract Subtitles From .mkv

This instructions whall work on any system (Mac OS X, Linux) supporting installation of mkvtoolnix

Install mkvtoolnix

If you don't have Homebrew installed, do it first, the continue with following command:

brew install mkvtoolnix
@KarlZeo
KarlZeo / github.css
Created March 8, 2019 07:52
CSS for github code
.markdown-body pre {
box-shadow: 0 5px 12px rgba(255,255,255,.25);
filter: invert(1) hue-rotate(180deg) saturate(200%);
background-color: #ced0d4 !important;
border-radius: .35rem !important;
}
.blob-wrapper {
box-shadow: 0 5px 12px rgba(255,255,255,.25);
filter: invert(1) hue-rotate(180deg) saturate(200%);
background-color: #ced0d4 !important;
@KarlZeo
KarlZeo / 00_README.md
Created June 13, 2022 09:16 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms