This file contains hidden or 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 | |
XCODE_UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID) | |
PLUGIN_PATH="$HOME/Library/Application Support/Developer/Shared/Xcode/Plug-ins" | |
for plugin in "$PLUGIN_PATH"/*.xcplugin ; do | |
defaults write "${plugin}"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $XCODE_UUID | |
done |
This file contains hidden or 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
#define HEXCOLORA(rgbValue, a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:a] | |
#define HEXCOLOR(rgbValue) HEXCOLORA(rgbValue, 1.0) | |
// HEXCOLOR(0xef0708) |
This file contains hidden or 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
#coding=utf-8 | |
import argparse | |
import re | |
import sys | |
import os | |
reload(sys) | |
sys.setdefaultencoding('utf8') |
This file contains hidden or 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
// ==UserScript== | |
// @name Show bupt library in douban | |
// @namespace http://bbs.byr.cn/ | |
// @description 在豆瓣读书页面显示该图书在北邮图书馆的信息 | |
// @include http://book.douban.com/subject/* | |
// @version 1.1 | |
// @author joest([email protected]) | |
// @author John Wong([email protected]) | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name BYR BBS ip2location | |
// @namespace http://bbs.byr.cn/ | |
// @description 使北邮人论坛用户发贴IP地址后附加物理地址信息 | |
// @include http://forum.byr.edu.cn/* | |
// @include http://forum.byr.cn/* | |
// @include http://bbs.byr.edu.cn/* | |
// @include http://bbs6.byr.edu.cn/* | |
// @include http://bbs.byr.cn/* | |
// @include http://bbs6.byr.cn/* |
NewerOlder