关闭

mgo 连接需要授权登录的mongodb

golang mgo authentication...
阅读(1337) 评论(0)

用ctags自定义的生成规则, 自己生成了lua文件的tags

ctags 生成lua跳转tag方法。...
阅读(787) 评论(0)

保存一份VIM配置

使用的插件  NERDTree A.vim Taglist NERDComment set nocompatible set nu set backspace=indent,eol,start set ts=2 set shiftwidth=2 set et set ai set autoread set cmdheight=2 set showmatch set h...
阅读(627) 评论(0)

低版本python如何安装 pip

Python 2.7.9+ and 3.4+ Good news! Python 3.4 (released March 2014) and Python 2.7.9 (released December 2014) ship with Pip. This is the best feature of any Python release. It makes the community'...
阅读(491) 评论(0)

自定义sublime的快捷键

我把mbp上面的ctrl改成了meta所以windows下面要稍微改写下,不然按键比较怪 这个是用于windows上面的, [ { "keys": ["alt+l"], "command": "svn_log" }, { "keys": ["alt+d"], "command": "svn_diff" }, { "keys": ["ctrl+a"], "command": "move_t...
阅读(216) 评论(0)

lua中尽量使用local

结论: lua 5.1.5 windows环境下 使用local变量能够稍微提高效率 但是如果有了间接引用,比如 上面代码里面 local g = {} 定义成 local a = {}, a.g = {} 增加了简介引用之后,效率就会发生变化了 实际使用中不是很好控制 比如通常一个lua文件通常写成  local a = {} --或者 local a = class(...
阅读(4120) 评论(0)

2D OBB Intersection

http://www.flipcode.com/archives/2D_OBB_Intersection.shtml -------------------------------------------------------------------- 2D OBB Intersection For 2D graphics or movement of 3D objects on a 2D...
阅读(163) 评论(0)

Cocos2.2.6创建项目cd tools/project-creator/

http://blog.csdn.net/a542214712/article/details/20638477 cd tools/project-creator/ ./create_project.py  ./create_project.py -project hicoco -package net.ataworld.game -language cpp...
阅读(177) 评论(0)

Texture packer命令行加密

@echo offtexturepacker fishjoy_kind/*.png --data FishJoyKind.plist --sheet FishJoyKind.pvr.ccz --format cocos2d --texture-format pvr2ccz --content-protection ADEFB88CA0D7DE87EE82A3CD9B3FECDF --opt RGB...
阅读(318) 评论(0)

记录有用的开源库

一些开源库记录下 Lua 的 https://github.com/kingluo/luajit.io   Pure Lua IO framework, with C efficiency due to its simple but powerful design, and, of course, thanks to luajit, the perfect JIT engine....
阅读(193) 评论(0)

利用NDK崩溃日志查找BUG

摘要: 在android上开发c++应用, crash日志都是汇编码, 很难对应到c++代码中去. 通过此文, 你可以定位到程序崩溃时的C++代码, 精确查找问题. 博客: http://www.cnblogs.com/jhzhu邮箱: jhzhuustc@gmail.com作者: 知明所以时间: 2014-06-20 背景介绍 本文主要内容: 利用android...
阅读(325) 评论(0)

C++返回table给lua

//定义函数(返回table) int func_return_table(lua_State *L) { lua_newtable(L);//创建一个表格,放在栈顶 lua_pushstring(L, "mydata");//压入key lua_pushnumber(L,66);//压入value lua_settable(L,-3);//弹出key,value,并设置到table里面...
阅读(461) 评论(0)

阅读lmathlib.c

1. 重要的结构 luaL_Reg typedef struct luaL_Reg { const char *name; lua_CFunction func; } luaL_Reg;typedef int (*lua_CFunction) (lua_State *L); 可以用该结构做参数简单的来创建table luaL_newlib(L, mathlib); 这样在栈顶创...
阅读(375) 评论(0)

Lua upvalue

Another word for an upvalue in Lua is an external local variable. When you write a new function in Lua, it can access any of the local variables that have the same scope as it. That function 'clos...
阅读(304) 评论(0)

苹果拒信2

2.2 - Apps that exhibit bugs will be rejected 17.1 - Apps cannot transmit data about a user without obtaining the user's prior permission and providing the user with access to information about how a...
阅读(1047) 评论(0)
96条 共7页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:188972次
    • 积分:2498
    • 等级:
    • 排名:第15353名
    • 原创:39篇
    • 转载:34篇
    • 译文:23篇
    • 评论:11条
    最新评论