Magicpang

Tracking the Road

排序:
默认
按更新时间
按访问量

mgo 连接需要授权登录的mongodb

golang mgo authentication

2016-09-29 17:35:28

阅读数:3012

评论数:0

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

ctags 生成lua跳转tag方法。

2016-08-22 15:05:54

阅读数:1394

评论数: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 autore...

2016-08-15 00:45:29

阅读数:880

评论数: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 fea...

2016-08-12 10:13:27

阅读数:897

评论数:0

自定义sublime的快捷键

我把mbp上面的ctrl改成了meta所以windows下面要稍微改写下,不然按键比较怪 这个是用于windows上面的, [ { "keys": ["alt+l"], "command": "svn_log" ...

2016-05-31 10:13:40

阅读数:280

评论数:0

lua中尽量使用local

结论: lua 5.1.5 windows环境下 使用local变量能够稍微提高效率 但是如果有了间接引用,比如 上面代码里面 local g = {} 定义成 local a = {}, a.g = {} 增加了简介引用之后,效率就会发生变化了 实际使用中不是很好控制 比...

2016-04-26 10:58:05

阅读数:6495

评论数:0

2D OBB Intersection

http://www.flipcode.com/archives/2D_OBB_Intersection.shtml -------------------------------------------------------------------- 2D OBB Intersection ...

2016-04-14 17:36:30

阅读数:287

评论数: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 hic...

2016-04-12 23:22:13

阅读数:243

评论数:0

Texture packer命令行加密

@echo offtexturepacker fishjoy_kind/*.png --data FishJoyKind.plist --sheet FishJoyKind.pvr.ccz --format cocos2d --texture-format pvr2ccz --content-pr...

2016-04-06 15:39:06

阅读数:522

评论数:0

记录有用的开源库

一些开源库记录下 Lua 的 https://github.com/kingluo/luajit.io   Pure Lua IO framework, with C efficiency due to its simple but powerful design, and, of cour...

2016-03-24 18:45:40

阅读数:236

评论数:0

利用NDK崩溃日志查找BUG

摘要: 在android上开发c++应用, crash日志都是汇编码, 很难对应到c++代码中去. 通过此文, 你可以定位到程序崩溃时的C++代码, 精确查找问题. 博客: http://www.cnblogs.com/jhzhu邮箱: jhzhuustc@gmail.com作者: 知明...

2016-02-26 11:10:36

阅读数:444

评论数:0

C++返回table给lua

//定义函数(返回table) int func_return_table(lua_State *L) { lua_newtable(L);//创建一个表格,放在栈顶 lua_pushstring(L, "mydata");//压入key lua_pushnumber(...

2016-02-26 10:47:33

阅读数:994

评论数: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); 可以用...

2016-02-17 19:30:01

阅读数:512

评论数: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 tha...

2016-02-17 18:56:22

阅读数:381

评论数: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 provid...

2016-02-17 14:12:50

阅读数:1325

评论数:0

“Operation could not be completed. (SKErrorDomain error 0.)”

http://stackoverflow.com/questions/6664778/error-domain-skerrordomain-code-0-operation-could-not-be-completed-skerrordom You must logout from yo...

2015-12-21 16:07:32

阅读数:978

评论数:0

动画

bool GameMain::init() { if( !Layer::init()) return false; Size visibleSize = CCDirector::sharedDirector()->getVisibleSize(); b...

2015-12-15 13:49:15

阅读数:353

评论数:0

苹果的拒信

3.6 - Apps with App icons, screenshots, previews, and images displayed when an Apple TV app is in the top shelf of the Apple TV home screen that do n...

2015-12-01 15:47:44

阅读数:3992

评论数:0

IOS github一些开源库

keychain https://github.com/ldandersen/STUtils IAP http://github.com/mugunthkumar/MKStoreKit

2015-11-27 18:17:38

阅读数:280

评论数:0

cocos2dx 画包围盒

cocos2dx 画包围盒virtual void draw(Renderer *renderer, const Mat4& transform, uint32_t flags); DrawNode* m_pDrawNode = nullptr; m_pDraw...

2015-11-25 12:40:44

阅读数:939

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭