Skip to content

Instantly share code, notes, and snippets.

Avatar

tenhow

View GitHub Profile
View gist:a463f722fe37272880cfabb133f6b5d0
NSString *propertyAttributes = [NSString stringWithUTF8String:property_getAttributes(property)];
NSArray *propertyAttributesStringArray = [propertyAttributes componentsSeparatedByString:@","];
NSString *propertyClassInformationString = classTypeStringArray[0];
NSString *propertyClassTypeString = [propertyClassInformationString componentsSeparatedByString:@"\""][1];
NSString *propertyClassProtocolsString = [propertyClassInformationString componentsSeparatedByString:@"\""][2];
propertyClassProtocolsString = [classTypeString stringByReplacingOccurrencesOfString:@">" withString:@""];
propertyClassProtocolsString = [classTypeString stringByReplacingOccurrencesOfString:@"<" withString:@""];
NSArray *propertyClassProtocolsArray = [propertyClassProtocolsString componentsSeparatedByString:@","];
View gist:307bcfbe01b02718205bf4783f2f7c98
_Q_STRINGS = {
NIC_MS_AD_QUICK_STEP01: "Step",
NIC_MS_AD_QUICK_STEP02: "of",
NIC_MS_AD_QUICK_INTRO: "Introduction",
MISC_QSYNC_ERRMSG03: "Each job supports maximum 5 folder pairs.",
MISC_QSYNC_ERRMSG05: "The password should only contain 1-16 characters.",
MISC_QSYNC_ERRMSG08: "The time interval must be larger than 5 minutes.",
MISC_QSYNC_ERRMSG09: "The source and target paths are identical.",
MISC_QSYNC_ERRMSG11: "The specified paths are parent and child folders.",
MISC_QSYNC_ERRMSG12: "Please specify at least one pair of folders.",
@tenhow
tenhow / install_fish_debian.sh
Created Apr 1, 2018 — forked from mamiu/install_fish_debian.sh
Install fish shell in Debian 8 (commands from the original fish shell website).
View install_fish_debian.sh
#!/bin/bash
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_8.0/ /' >> /etc/apt/sources.list.d/fish.list
apt-get update
wget -qO - http://download.opensuse.org/repositories/shells:fish:release:2/Debian_8.0/Release.key | apt-key add -
apt-get update
apt-get install -y fish
View luna_pinyin.custom.yaml
# luna_pinyin.custom.yaml
# 修改字典名爲 luna_pinyin.kunki
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin
patch:
translator/dictionary: luna_pinyin.kunki
@tenhow
tenhow / Mac Chrome Application Shortcuts 2018-06.txt
Created Dec 3, 2018 — forked from yeutterg/Mac Chrome Application Shortcuts 2018-06.txt
How to enable Application Shortcuts on Chrome for Mac, as of June 2018
View Mac Chrome Application Shortcuts 2018-06.txt
How to get "Application Shortcut" functionality on Chrome for Mac, as of June 2018:
1. Type chrome://flags/ in the URL bar and hit return
2. Enable these options:
- The new bookmark app system
- Allow hosted apps to be opened in windows
- Creation of app shims for hosted apps on Mac
3. Restart the browser
4. Visit the web page you would like to turn into an application
5. Navigate to Settings > More Tools > Create Shortcut...
View Mod for Moegi
<link rel="stylesheet" type="text/css" href="//fonts.lug.ustc.edu.cn/css?family=Orbitron" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/instantclick/3.0.1/instantclick.min.js"></script>
<script data-no-instant>
InstantClick.on('change', function(isInitialLoad){
if (isInitialLoad === false) {
if (typeof MathJax !== 'undefined'){
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
}
You can’t perform that action at this time.