Skip to content

Instantly share code, notes, and snippets.

View youxiachai's full-sized avatar

youxiachai youxiachai

View GitHub Profile
@youxiachai
youxiachai / luaHelloWorld
Created October 6, 2012 07:53
lua hello world
print('Hello world!);
public static boolean isMobileNO(String mobiles){
Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
Matcher m = p.matcher(mobiles);
return m.matches();
public class IndexXlistView extends XListView {
private boolean mIsFastScrollEnabled = false;
private IndexScroller mScroller = null;
private GestureDetector mGestureDetector = null;
public IndexXlistView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
data:text/html, <style%20type%3D"text%2Fcss">%23e%7Bposition%3Aabsolute%3Btop%3A0%3Bright%3A0%3Bbottom%3A0%3Bleft%3A0%3B%7D<%2Fstyle><div%20id%3D"e"><%2Fdiv><script%20src%3D"http%3A%2F%2Fd1n0x3qji82z53.cloudfront.net%2Fsrc-min-noconflict%2Face.js"%20type%3D"text%2Fjavascript"%20charset%3D"utf-8"><%2Fscript><script>var%20e%3Dace.edit("e")%3Be.setTheme("ace%2Ftheme%2Fmonokai")%3Be.getSession().setMode("ace%2Fmode%2Fjava")%3B<%2Fscript>
{
"gameBasket": {
"deletedEntityGuids": [ ],
"gameEntities": [ ],
"inventory": [ ]
},
"result": {
"map": {
"013212222102": {
"deletedGameEntityGuids": [
p {
text-indent: 2em!important;
}
@youxiachai
youxiachai / mobilePhonePageHight.js
Created April 3, 2013 18:43
检测手机网页页面高度
document.body.scrollHeight || document.documentElement.scrollHeight
@youxiachai
youxiachai / hexoListPage.json
Created April 5, 2013 09:15
hexo 主题列表:Page对象 : 模板:layout,archive ,category ,index,tag
{
"base": "/",
"per_page": 10,
"total": 1,
"current": 1,
"current_url": "",
"posts": {
"_name": "posts",
"_parent": {
"_store": {},
@youxiachai
youxiachai / hexoContentPage.json
Created April 5, 2013 09:17
hexo 主题内容: Page 相关模板:post, page
{
"title": "",
"date": "2013-04-05T14:38:36.000Z",
"updated": "2013-04-05T14:38:41.000Z",
"comments": true,
"layout": "page",
"content": "<!DOCTYPE html>\n<html>\n<head>\n <title></title>\n</head>\n<body>\nI am tom\n</body>\n</html>",
"excerpt": "<!DOCTYPE html>\n<html>\n<head>\n <title></title>\n</head>\n<body>\nI am tom\n</body>\n</html>",
"source": "about/index.html",
"path": "about/index.html",
<script type="text/javascript">
var duoshuoQuery = {short_name:"xxxxxxxxxxxx"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = 'http://static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();