Skip to content

Instantly share code, notes, and snippets.

@iamued
iamued / cnzz.py
Last active June 6, 2016 16:24
Cnzz api with python
__author__ = 'richie'
# -*- coding: utf-8 -*-
import urllib, urllib2, cookielib, re, os, codecs, time, subprocess,sys,json
#import simplejson as json
import dateutil
class cnzz(object):
def __init__(self, username = '', password = '',othername=''):
self.__username = username
self.__othername = othername
self.__password = password
@iamued
iamued / url.js
Created January 9, 2012 06:17
short url cover for Mac
var http = require('http');
const traceurl = require('traceurl');
var url =require('url');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
//console.log("request"+url.parse(request.url).query);
var urlreq=url.parse(request.url,true).query;
if(urlreq!=''){
if(urlreq.url){