This file contains 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 <Foundation/Foundation.h> | |
#import <ReactiveCocoa/ReactiveCocoa.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
RACSubject *input = [RACSubject subject]; | |
RACSignal *output = [[[[input | |
map:^(NSString *combo) { | |
NSArray *components = [combo componentsSeparatedByString:@","]; |
This file contains 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
require "octokit" | |
require "pinboard" | |
# After running this script, you can use [this IFTTT recipe](https://ifttt.com/recipes/71035) | |
# for future sync **automatically**. | |
pinboard = Pinboard::Client.new(:token => 'TOKEN') # get the token here: https://pinboard.in/settings/password | |
github = Octokit::Client.new(:login => 'USERNAME', :password => 'PASSWORD') | |
total_starred = 9999 # get the count here: https://github.com/stars |
This file contains 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
# Author: dismory <http://zhihu.com/dismory> | |
# | |
# - 命名为:luna_pinyin.custom.yaml | |
# - 放到 ~/Library/Rime 目录下 | |
# - 在菜单栏单击署鼠须管图标,下拉菜单里选择【重新部署】即可 | |
# | |
# 此自定义方案是针对【朙月拼音】的,针对其它请修改文件名前缀 `luna_pinyin` 为其它。 | |
patch: | |
"punctuator/full_shape/[" : ["「", "【"] |