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 -*- | |
from __future__ import absolute_import, unicode_literals | |
from bson import json_util as json | |
class JSONSerializer(object): | |
""" | |
Simple wrapper around json to be used in signing.dumps and | |
signing.loads. | |
""" |
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 os | |
import base64 | |
import urllib2 | |
import re | |
import sqlite3 | |
db = sqlite3.connect("fm.db") |
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
http://stream0.kxt.fm/dj/tgdrshiguangliuzhuan.mp3 | |
http://stream0.kxt.fm/dj/ForFunOneLife.mp3 | |
http://stream0.kxt.fm/dj/weishuiliubei.mp3 | |
http://stream0.kxt.fm/dj/Xphuangdanshijie.mp3 | |
http://stream0.kxt.fm/dj/erguniangdeshijiusui.mp3 | |
http://stream0.kxt.fm/dj/duoshaoqinglv.mp3 | |
http://stream0.kxt.fm/dj/woniuxiansheng.mp3 | |
http://stream0.kxt.fm/dj/hylyfancuodechengben.mp3 | |
http://stream0.kxt.fm/dj/yzbzkzaijianguoqu.mp3 | |
http://stream0.kxt.fm/dj/shuishinisuishikeyishuohuaderen.mp3 |
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 urllib2 | |
import re | |
import sys | |
def main(): | |
print("===========================================") | |
print("Welcome to run this CET score query program") | |
print(" Created by messense<http://messense.me>") |
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
/*! | |
* 某学校有12名学生参加100米短跑比赛,每个运动员号和成绩如4-4所示, | |
* 请按照比赛成绩排名并输出,要求每一行输出名次、运动员号和比赛成绩三项数据。 | |
* 表4-4 100米短跑比赛成绩 | |
* 运动员号 成绩(秒 运动员号 成绩(秒) | |
* 001 13.6 031 14.9 | |
* 002 14.8 036 12.6 | |
* 010 12.0 037 13.4 | |
* 011 12.7 102 12.5 | |
* 023 15.6 325 15.3 |
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
/*! | |
* Matrix | |
* 已知一个矩阵A为{{3,0,4,5},{6,2,1,7},{4,1,5,8}} | |
* 另一个矩阵B为{{1,4,0,3},{2,5,1,6},{0,7,4,4},{9,3,6,0}} | |
* 求出A与B的乘机矩阵C[3][4]并输出出来,其中C中的每个元素C[i][j]等于∑3k=0 A[i][k]*B[k][j]。 | |
*/ | |
#include <iostream> | |
using namespace std; | |
void print_matrix3(int mt[3][4]) { |
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 os | |
import re | |
import json | |
import pickle | |
import logging | |
import logging.config | |
import requests |
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
. /etc/init.d/functions.sh | |
VERSION="`basename $0` ver. 0.91" | |
USAGE="Usage: `basename $0` < option > | --status-all | \ | |
[ service_name [ command | --full-restart ] ]" | |
SERVICE= | |
SERVICEDIR="/etc/init.d" | |
OPTIONS= | |
if [ $# -eq 0 ]; then |
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
#!/bin/env python | |
from __future__ import with_statement | |
import sys | |
import logging | |
import requests | |
import urllib | |
import getopt | |
if sys.version_info < (2, 6): | |
import simplejson as json | |
else: |
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
/** | |
* GenPAC 0.2.1 http://jeeker.net/projects/genpac/ | |
* Generated: Fri, 17 May 2013 14:15:55 GMT | |
* GFWList Last-Modified: Fri, 17 May 2013 12:41:31 GMT | |
*/ | |
// proxy | |
var P = "PROXY 192.168.1.1:8118; DIRECT"; | |
// user rules |
OlderNewer