#The Great Firewall (GFW) Contributors List
注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量
###Binxing Fang (方滨兴)
中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing
| #!/usr/bin/tclsh8.5 | |
| # | |
| # Usage: git-unmerged branch1 branch2 | |
| # | |
| # Shows all the non-common commits in the two branches, where non-common | |
| # commits means simply commits with a unique commit *message*. | |
| proc getlog branch { | |
| lrange [split [exec git log $branch --oneline] "\n"] 0 400 | |
| } |
#The Great Firewall (GFW) Contributors List
注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量
###Binxing Fang (方滨兴)
中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing
| // http://cocoawithlove.com/2009/10/ugly-side-of-blocks-explicit.html has a nice breakdown of the syntax--it helps to think of the ^ as similar to a pointer dereference symbol * | |
| // block typedef: | |
| typedef void(^Block)(); | |
| typedef void(^ConditionalBlock)(BOOL); | |
| typedef NSString*(^BlockThatReturnsString)(); | |
| typedef NSString*(^ConditionalBlockThatReturnsString)(BOOL); | |
| // block property with typedef: |
| #import <Foundation/Foundation.h> | |
| @interface NSObject (Cast) | |
| + (instancetype)cast:(id)object; | |
| @end | |
| @implementation NSObject (Cast) | |
| + (instancetype)cast:(id)object | |
| { | |
| return [object isKindOfClass:self] ? object : nil; |
| // | |
| // PSPDFThreadSafeMutableDictionary.m | |
| // | |
| // Copyright (c) 2013 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is |
| #!/usr/bin/env python2 | |
| # vim: set fileencoding=utf8 | |
| import re, sys, os, random, time, json, logging, argparse, requests, urllib | |
| from mutagen.id3 import ID3,TRCK,TIT2,TALB,TPE1,APIC,TDRC,COMM,TPOS,USLT | |
| from HTMLParser import HTMLParser | |
| parser = HTMLParser() | |
| s = u'\x1b[1;%dm%s\x1b[0m' # terminual color template |
| typedef enum _UIBackgroundStyle { | |
| UIBackgroundStyleDefault, | |
| UIBackgroundStyleTransparent, | |
| UIBackgroundStyleLightBlur, | |
| UIBackgroundStyleDarkBlur, | |
| UIBackgroundStyleDarkTranslucent | |
| } UIBackgroundStyle; | |
| @interface UIApplication (UIBackgroundStyle) | |
| -(void)_setBackgroundStyle:(UIBackgroundStyle)style; |
| /* Theme Name: Flat Pinboard */ | |
| /* Theme URL: http://tackk.com/flat-pinboard */ | |
| /* Version: v1.0 */ | |
| /* Created by: Dan Klammer */ | |
| /* Broswer: Chrome + Stylish Extension */ | |
| html { | |
| -webkit-font-smoothing:antialiased; | |
| height:100%; | |
| } |
| #import "UITextField+RACKeyboardSupport.h" | |
| #import <ReactiveCocoa/RACEXTScope.h> | |
| #import <ReactiveCocoa/NSObject+RACDescription.h> | |
| @implementation UITextField (RACKeyboardSupport) | |
| - (RACSignal *)rac_keyboardReturnSignal { | |
| @weakify(self); | |
| return [[[[RACSignal | |
| defer:^{ |
| @implementation UIImage (scale) | |
| /** | |
| * Scales an image to fit within a bounds with a size governed by | |
| * the passed size. Also keeps the aspect ratio. | |
| * | |
| * Switch MIN to MAX for aspect fill instead of fit. | |
| * | |
| * @param newSize the size of the bounds the image must fit within. | |
| * @return a new scaled image. |