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
//*********************************************************************** | |
// Author: Xiayf | |
// Date: 2011/9/29 | |
// What: Insertion Sort | |
//*********************************************************************** | |
#include <stdio.h> | |
#include <stdlib.h> | |
void insertionSort(int *intArray, int arrayVolume); |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import sys | |
import logging | |
import urllib | |
import bs4 | |
import requests | |
import requests.exceptions |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import sys | |
import StringIO | |
import requests | |
import PIL.Image | |
import tesserwrap |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import requests | |
import sched | |
import time | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.header import Header |
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 socket | |
import base64 | |
import hashlib | |
import struct | |
from select import select | |
class WebSocket(): |
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
#!/usr/bin/python | |
import re, os | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
INDEX_DICT = {'tw': (2, 12), 'dl': (36, 2), 'ga': (44, 1), 'wg': (46, 1), 'jp': | |
(48, 1), 'yd': (49, 1)} | |
FORUM_URL_PATTERN = 'http://www.angnow.com/forum-%d-%d.html' |
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
#!/usr/bin/python | |
#-*-coding: utf-8 -*- | |
import os, sys | |
from SimpleCV import * | |
template = 'face' | |
output_dir = '/home/usrname/output/' | |
def handle_pics(dir_name): |
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
#!/usr/bin/python | |
import os, sys | |
target_dir = 'output/' | |
def rename_files(dir_name): | |
if not dir_name.endswith('/'): | |
dir_name += '/' |
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
#!/usr/bin/python | |
#-*- coding: utf-8 -*- | |
import os | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
def parse_class_x(class_name): | |
last_page_num = 1 | |
base_url = 'http://qiip.net/category/firegirls/' + class_name |
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
#!/usr/bin/python | |
#-*- coding: utf-8 -*- | |
import os | |
import sys | |
import re | |
import json | |
import matplotlib.pyplot as plt | |
count_dict = {} |
OlderNewer