Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

王翔(Shawn Wang) wxjeacen

View GitHub Profile
View dict.py
#!/usr/bin/env python
# Time-stamp: <2012-11-01 22:36:50 Thursday by devil>
# @version 1.0
# @author Xiang Wang (xiang_wang@trendmicro.com.cn)
import urllib2,sys
View ColorLogger.py
'''
Created on 2012-9-19
@author: Xiang Wang
'''
import ctypes
import logging
import os
class ColorizingStreamHandler(logging.StreamHandler):
View enable_py27.sh
#!/bin/sh
cd $OPENSHIFT_TMP_DIR
wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
tar jxf Python-2.7.3.tar.bz2
cd Python-2.7.3
./configure --prefix=$OPENSHIFT_RUNTIME_DIR
make install
cd $OPENSHIFT_TMP_DIR
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
View tesseract.cpp
#include <baseapi.h>
#include <iostream>
#include <allheaders.h>
Pix *pix;
int offset;
float slope;
int main(int argc, char *argv[]) {
tesseract::TessBaseAPI api;
View junipernc
#!/bin/sh
#
# Simple control script for Juniper Network Connect VPN clients
#
C='Copyright 2008-2011 Paul D. Smith <paul@mad-scientist.net>'
V='Version 1.16'
D='31 Oct 2011'
U='http://mad-scientist.net/juniper.html'
#
# This script is free software; you can redistribute it and/or modify it under
View uploadlog.py
#!/usr/bin/env python
import time
import threading
import urllib
import httplib2
import re
sum = 10
concurrent = 1
View urllibsample.py
#!/usr/bin/env python
# Time-stamp: <2011-12-25 16:34:05 Sunday by devil>
# @version 1.0
# @author ahei
import httplib
import os.path
import urllib2
View connect.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <memory.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <stdarg.h>
#include <fcntl.h>
View uploadlog.py
#!/usr/bin/env python
import time
import threading
import urllib
import httplib2
import re
sum = 25000
concurrent = 1000
View valgrindrc
--leak-check=full
--show-reachable=yes
--trace-children=yes
--track-fds=yes
--time-stamp=yes
--track-origins=yes
--dsymutil=yes
--smc-check=all
--read-var-info=yes
--show-emwarns=yes
You can’t perform that action at this time.