#The Great Firewall (GFW) Contributors List
注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量
###Binxing Fang (方滨兴)
中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
#The Great Firewall (GFW) Contributors List
注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量
###Binxing Fang (方滨兴)
中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing
var cv = document.getElementById('cv'); | |
var c = cv.getContext('2d'); | |
var txtDiv = document.getElementById('txt'); | |
var fileBtn = document.getElementById("up-button"); | |
var img = new Image(); | |
img.src = 'a.jpg'; | |
img.onload = init; // 图片加载完开始转换 | |
fileBtn.onchange = getImg; | |
// 根据灰度生成相应字符 |
window.onload=function(){ | |
var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire"); | |
var browser = navigator.userAgent.toLowerCase(); | |
for (var i=0; i<mobileAgent.length; i++){ | |
if (browser.indexOf(mobileAgent[i])!=-1){ | |
alert(mobileAgent[i]); | |
break; | |
} | |
} | |
} |
# coding: utf-8 | |
# author: haofly | |
# | |
# fun: 生成随机姓名、随机电话号码、随机字符串,目前仅支持Python2 | |
import random | |
def generateName(first_len=0, last_len=0): | |
surnames = [ |
import xlsxwriter | |
from io import BytesIO | |
from django.http import StreamingHttpResponse | |
from django.views.generic import View | |
def get_foo_table_data(): | |
""" | |
Some table data | |
""" |
import re | |
def mycmp(version1, version2): | |
def normalize(v): | |
return [int(x) for x in re.sub(r'(\.0+)*$','', v).split(".")] | |
return cmp(normalize(version1), normalize(version2)) | |
if __name__ == '__main__': | |
assert mycmp("1", "1") == 0 | |
assert mycmp("2.1", "2.2") < 0 |
from qiniu import Auth, put_file, etag, urlsafe_base64_encode, BucketManager | |
from typing import List, Dict | |
import os | |
from qiniu import build_batch_delete | |
class Sync: | |
""" | |
同步目录至七牛云 |
import graphene | |
from graphene import String | |
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField | |
from promise import Promise | |
from promise.dataloader import DataLoader | |
from sqlalchemy import Column, BigInteger, ForeignKey | |
from sqlalchemy.orm import relationship | |
from db import Base, db_session # 这里自己去定义 |