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