Skip to content

Instantly share code, notes, and snippets.

View wujichao's full-sized avatar

Jichao Wu wujichao

  • Hangzhou, Zhejiang
View GitHub Profile
@wujichao
wujichao / keyCommand.m
Last active June 20, 2016 04:13
UIKeyCommand
//用法
xxxxxxButton.mgj_keyCommand = @"2";
-> ctrl + 2 //UIKeyModifierControl
// UIButton+UIKeyCommand
static char *kKeyCommandAssociatedObjectKey;
@interface UIButton (UIKeyCommand)
@property (nonatomic, strong) NSString *mgj_keyCommand;
@end
@implementation UIButton (UIKeyCommand)
@wujichao
wujichao / 0_reuse_code.js
Created June 1, 2014 15:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console