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 os | |
import sys | |
import getopt | |
import re | |
import subprocess | |
import time | |
import socket |
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 matplotlib | |
import matplotlib.pyplot as plt | |
Y = [] | |
matplotlib.rcParams["savefig.dpi"]=80; | |
print matplotlib.rcParams["savefig.dpi"] | |
file = open("./statistic.txt", "r"); | |
lines = file.readlines(); |
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
/* | |
* cvtest.c | |
* | |
* Created on: Mar 26, 2013 | |
* Author: szhu | |
Makefile: | |
CFLAGS=-g | |
CFLAGS+=$(shell pkg-config --cflags opencv) | |
LDFLAGS= $(shell pkg-config --libs opencv) | |
CC=gcc |
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 | |
import urllib2 | |
nb_addr = 0; | |
addrs = set(); | |
def get_tag_a(data): | |
# pattern = re.compile('''http://[\w:/\.&%=?-]+''') |
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/bash | |
usage() | |
{ | |
echo "Release time:xxxx-xx-xx" | |
echo " -v|--version : version" | |
echo " -h|--help : help" | |
echo " --add : add a channel" | |
echo " --list : list all channels" | |
echo " --name : channel 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 | |
import sys | |
import getopt | |
import re | |
channels = dict(); | |
workmode="" | |
chname="" |
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
input_name = "jiangsugaoqing"; | |
m3u8str = '''#EXTM3U | |
#EXT-X-VERSION:3 | |
#EXT-X-TARGETDURATION:128 | |
#EXT-X-MEDIA-SEQUENCE:10000 | |
'''; | |
if __name__ == "__main__": | |
if(len(sys.argv) == 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
#include <gst/gst.h> | |
static const char* demux_cmd = "filesrc location=/mnt/hgfs/E/media/source/IceAgeTrailer.mpg ! mpegpsdemux"; | |
#define DISABLE_MUX 1 | |
#if DISABLE_MUX | |
static const char* enc_video_cmd = "queue ! ffdec_mpeg2video ! ffmpegcolorspace ! queue ! xvimagesink"; | |
static const char* enc_audio_cmd = "queue ! mad ! queue ! audioconvert ! alsasink"; | |
#else |