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 -*- | |
# Base62 tools (convert number <=> string) | |
# v1.0/20130109 | |
# python 2.x/3.x supported | |
# | |
#author: Ady Liu([email protected]) | |
#github: github.com/adyliu | |
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
adylab:script adyliu$ python3 htmlsubstring.py | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不信不行</div><h2>标题党</h2></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不</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 python3 | |
#-*- coding:utf-8 -*- | |
#author: adyliu([email protected]) | |
#version: 0.1 | |
import os | |
import os.path | |
import sys | |
DEBUG='--debug' in sys.argv |
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
/* | |
An API demo of sqlite3 | |
author: Ady Liu | |
email: [email protected] | |
web: http://www.blogjava.net/xylz/archive/2012/09/25/388519.html | |
*/ | |
#include <stdio.h> | |
#include "sqlite3.h" | |
int print_record(void *,int,char **,char **); |
NewerOlder