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
import urllib2 | |
import socket | |
import json | |
import sys | |
from HTMLParser import HTMLParser | |
import requests | |
import argparse | |
import xml.etree.cElementTree as ET | |
url = "http://mesu.apple.com/assets/com_apple_MobileAsset_Font/com_apple_MobileAsset_Font.xml" |
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
packet1 = IP(dst='106.187.39.23')/TCP(dport=9999,flags=0x18) | |
packet1.payload = 'GET / HTTP\r\nUser-Agent: curl/7.28.1\r\nHost: liruqi.com\r\nAccept: */*\r\n\r\n' | |
send(packet1) |
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 copy | |
testcases = int( raw_input() ) | |
for i in range(testcases): | |
nk = raw_input().split(" ") | |
n = int(nk[0]) | |
k = int(nk[1]) | |
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
gCnt = 0 | |
def main(): | |
squre = [] | |
for i in range(4): | |
squre.append([0,0,0,0]) | |
print squre | |
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: liruqi@gmail.com (http://liruqi.wordpress.com/) | |
# require feedparser: http://www.feedparser.org/ | |
# | |
import time | |
import os | |
import feedparser | |
f = feedparser.parse("http://blog.sina.com.cn/rss/1191258123.xml") |
NewerOlder