Skip to content

Instantly share code, notes, and snippets.

View yukixz's full-sized avatar
❤️
Your Sponsor

Dazzy Ding yukixz

❤️
Your Sponsor
View GitHub Profile
@yukixz
yukixz / server.py
Created June 22, 2013 05:22
Serve a SimpleHTTPServer for Images. Each Image will link to next one or directory if last.
#!/usr/bin/python
import http.server
import html
import io
import os
import socketserver
import sys
import urllib.parse
@yukixz
yukixz / poj1002.c
Last active December 16, 2015 11:09
#include <stdio.h>
#include <stdlib.h>
#define MAXLEN 100000
#define NUMLEN 64
int compare(void const *a, void const *b) {
return ( *(int*)a -*(int*)b );
}
/*
* @author: dazzyd
* @email: dazzyd2#gmail.com
* @license: BSD license
*/
#include <stdio.h>
#include <stdlib.h>
void printCode( char c )
{