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
| #!/usr/bin/env python | |
| '''logfomat:2012-07-19 13:50:39,playerId:68719476740,operFlow:1,operType:0,indentify:ws:shanbiP110,sampleId:ws:shanbiP1,Level:1,Exp: | |
| 0,Num:1''' | |
| import re | |
| import time | |
| Time="2012-07-31 12:43:40" | |
| time_str=time.mktime(time.strptime(Time,"%Y-%m-%d %H:%M:%S")) | |
| def grep(file,exp): | |
| fd=open(file,'r') |
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
| #!/usr/bin/env python | |
| """ | |
| This is a multiprocess URLchecker | |
| """ | |
| import urllib | |
| from multiprocessing import Process, Queue | |
| def checker(url): | |
| try: | |
| code = urllib.urlopen(url).getcode() | |
| return code |
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
| require 'cgi' | |
| require 'digest/md5' | |
| require 'net/https' | |
| require 'uri' | |
| module Jekyll | |
| class GistTag < Liquid::Tag | |
| def initialize(tag_name, text, token) | |
| super | |
| @text = text |
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
| from threadpool import * | |
| import sys | |
| import threading | |
| import Queue | |
| import traceback | |
| import urllib | |
| import time | |
| if __name__ =="__main__": | |
| def checker(urls): | |
| try: |
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
| #!/usr/bin/env python | |
| ######################################################################### | |
| """ wingdb.py -- Top-level command used internally by Wing IDE to | |
| start a debug process. | |
| Copyright (c) 2000-2012, Archaeopteryx Software, Inc. All rights reserved. | |
| Written by Stephan R.A. Deibel and John P. Ehresman | |
| """ |
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/env python | |
| #-*- coding:utf-8 -*- | |
| import os,sys | |
| import socket | |
| import subprocess | |
| import shlex | |
| #---------------------------------------------------------------------- | |
| def serve(HOST="",PORT=50007): | |
| """建立socket""" | |
| try: |
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
| #!/usr/bin/python | |
| import urllib2 | |
| import cookielib | |
| #登录URL | |
| login_url = 'http://www.buildhr.com/enterprise/login.php' | |
| #cookie处理器 | |
| cookies = urllib2.HTTPCookieProcessor() |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #ifdef DEBUG | |
| #define my_printf(fmt, args...) printf("[%s: %d]"fmt, __FUNCTION__, __LINE__, ##args) | |
| #else | |
| #define my_printf(fmt, args...) | |
| #endif | |
| typedef int ElemType; | |
| typedef int status; |
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
| #!/usr/bin/python | |
| #-*- coding:utf-8 -*- | |
| import urllib2 | |
| import urllib | |
| import cookielib | |
| import sys | |
| import re | |
| from multiprocessing import Process, Queue | |
| #---------------------------------------------------------------------- | |
| def login(): |
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
| #!/usr/bin/python | |
| #-*- coding:utf-8 -*- | |
| import urllib2 | |
| import urllib | |
| import cookielib | |
| import sys | |
| import re | |
| from multiprocessing import Process, Queue | |
| #---------------------------------------------------------------------- | |
| def login(): |