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
<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]); | |
} | |
} |
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
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... |
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
# luna_pinyin.custom.yaml | |
# 修改字典名爲 luna_pinyin.kunki | |
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin | |
patch: | |
translator/dictionary: luna_pinyin.kunki |
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
#!/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 |
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
_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.", |
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
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:@","]; |