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
#coding:utf-8 | |
import logging | |
import json | |
from datetime import datetime, timedelta | |
import time | |
def _analytic(passed_days, active_daily, active_hourly): | |
''' |
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
<style type="text/css"> | |
#word { | |
display: none; | |
} | |
</style> | |
<html> | |
<p id="word">word</p> | |
<form action=""> | |
<input type="" onblur="test()"/> |
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
#coding:utf-8 | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
class TopicResponse(object): | |
title = u'' | |
url = '' | |
reply_count = -1 |
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
#coding:utf8 | |
import urllib2 | |
import re | |
def input_link(l): | |
resp = urllib2.urlopen(l) | |
r_data = resp.read() | |
result = re.findall('\d+\.\d\d',r_data) |
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
<!DOCTYPE HTML> | |
<html lang="zh-CN"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<link rel="stylesheet" type="text/css" href="http://img00.zhaopin.cn/2012/css/reset.min.css" media="all"> | |
<link rel="stylesheet" type="text/css" href="http://my.zhaopin.com/css/new_v5/resume_preview.css" media="all"> | |
<script language="javascript" type="text/javascript"> | |
var _dyweq = _dyweq || []; | |
_dyweq.push(['_setAccount', window['acc4zpAnalytics'] || 'log000001']); | |
_dyweq.push(['_setDomainName', window['dom4zpAnalytics'] || '.zhaopin.com']); |
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
2788076974 |
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
#coding:utf8 | |
import unittest | |
import itertools | |
DEBUG = False | |
class Jinziqi_core(): | |
def __init__(self): | |
self.player_A = [] | |
self.player_B = [] |
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
#coding:utf8 | |
import re | |
def ex_1(): | |
s = 'aaabcbdbbbccc' | |
pattern = r'(([a-z])\2{2})' | |
pattern = r'([a-z])\1{2}' | |
print 'pattern is :' + pattern | |
print 'string is :' + s |
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
javascript:function iprl5(){t=document.title;d=t;l=encodeURIComponent(document.location.href);q="http://slink.sinaapp.com/add?link=_link&desc=_desc&title=_title";q=q.replace("_link",l);q=q.replace("_desc",d);q=q.replace("_title",t);location.href=q}iprl5();void 0; |
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
<script type="text/javascript"> | |
d = new Date(); | |
y = d.getFullYear().toString(); | |
td = (d.getMonth()).toString(); | |
ytd = y + td; | |
mycode = 6222100511860 | |
q = "http://opendata.baidu.com/api.php?query=%E5%B9%BF%E5%B7%9E__"+ytd+"__"+mycode+"&resource_id=6722&ie=utf8&oe=uft8&format=json&tn=baidu&from_mid=1&t=1389938832484&cb=bd__cbs__hpzxgf"; | |
location.href = q; | |
</script> |