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 | |
__author__ = 'baozi' | |
import random | |
import time | |
start = time.clock() | |
prefix = '2' | |
length = 16 | |
num = 1000000 |
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
{"DZA": {"0": {"AAE": {"n": "\u5b89\u7eb3\u5df4"}, "BAT": {"n": "\u5df4\u7279\u7eb3"}, "ATE": {"n": "\u827e\u56e0\u00b7\u8482\u59c6\u5c1a\u7279"}, "MIL": {"n": "\u5bc6\u62c9"}, "GUE": {"n": "\u76d6\u5c14\u9a6c"}, "BEC": {"n": "\u8d1d\u6c99\u5c14"}, "BOR": {"n": "\u5e03\u5c14\u5409\u00b7\u5e03\u963f\u96f7\u91cc\u5409"}, "TIP": {"n": "\u8482\u5df4\u624e"}, "BOU": {"n": "\u5e03\u8fc8\u5fb7\u65af"}, "TIS": {"n": "\u8482\u65af\u59c6\u897f\u52d2\u7279"}, "TIN": {"n": "\u5ef7\u675c\u592b"}, "NAA": {"n": "\u7eb3\u963f\u9a6c"}, "BIS": {"n": "\u6bd4\u65af\u514b\u62c9"}, "GHA": {"n": "\u76d6\u5c14\u8fbe\u8036"}, "REL": {"n": "\u8d6b\u5229\u8d5e"}, "BOA": {"n": "\u5e03\u4f9d\u62c9"}, "ILL": {"n": "\u4f0a\u5229\u9f50"}, "SKI": {"n": "\u65af\u57fa\u514b\u8fbe"}, "TIA": {"n": "\u63d0\u4e9a\u96f7\u7279"}, "SAI": {"n": "\u8d5b\u4f0a\u8fbe"}, "SET": {"n": "\u585e\u8482\u592b"}, "TEB": {"n": "\u7279\u8d1d\u8428"}, "SAH": {"n": "\u82cf\u514b\u00b7\u963f\u8d6b\u62c9\u65af"}, "SBA": {"n": "\u897f\u8fea\u8d1d\u52d2\u963f\u8d1d\u65a |
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
__author__ = 'baozi' | |
import Image | |
img_file = '1.jpg' | |
proportion = 0.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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
struct resource_t { | |
char name[32]; | |
long long held; | |
long long maxheld; | |
long long barrier; |
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
// 模板 | |
var floorTpl = '<div class="others" data-id="{id}">' + | |
'<span class="nick">{nick}</span>' + | |
'<span class="date">{datelineStr}</span>' + | |
'<div class="ctt">' + | |
'{content}' + | |
'<a href="javascript:void(0)"> [回复]</a>' + | |
'</div>' + | |
'</div>'; |
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 -*- | |
''' | |
@author: snooda | |
@website: www.snooda.com | |
@License: GNU GPL v3 | |
A script to show OpenVZ resource message friendly | |
''' | |
import sys |
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
/** | |
* @param {number[]} nums | |
* @return {number} | |
*/ | |
function find(nums, v) { | |
for (var j in nums) { | |
if (v == nums[j]) { | |
return true | |
} |
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
__author__ = 'baozi' | |
import Image,glob,os,colorsys | |
img_file = '1.jpg' | |
img_file_new = 'douwa_new.png' | |
direct = 'h' | |
z = 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
#! /bin/bash | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush any existing rules, leaving just the defaults | |
iptables -F |
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
.content a{ text-decoration: underline; color:#222;} | |
a:hover{color:#000;} | |
strong{color:#000;} | |
#post-content h1 { font-size: 20px;} | |
#post-content h1 { font-size: 18px;} | |
.bz_custom,.bz_custom_h{margin: 15px 0;padding: 8px;font-weight: bold;color: #000;} | |
#post-content h1,#post-content h2,#post-content h3{margin: 15px 0;padding: 8px;font-weight: bold;color: #000;} | |
#post-content h1,h1.bz_custom,h1.bz_custom_h{background-color: #666;} |
OlderNewer