- 博客(96)
- 资源 (16)
- 收藏
- 关注
原创 保存一份VIM配置
使用的插件 NERDTree A.vim Taglist NERDCommentset nocompatibleset nuset backspace=indent,eol,startset ts=2set shiftwidth=2set etset aiset autoreadset cmdheight=2set showmatchset h
2016-08-15 00:45:29
1294
转载 低版本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'
2016-08-12 10:13:27
2023
原创 自定义sublime的快捷键
我把mbp上面的ctrl改成了meta所以windows下面要稍微改写下,不然按键比较怪这个是用于windows上面的,[{ "keys": ["alt+l"], "command": "svn_log" },{ "keys": ["alt+d"], "command": "svn_diff" },{ "keys": ["ctrl+a"], "command": "move_t
2016-05-31 10:13:40
481
原创 lua中尽量使用local
结论: lua 5.1.5 windows环境下 使用local变量能够稍微提高效率但是如果有了间接引用,比如 上面代码里面 local g = {} 定义成 local a = {}, a.g = {}增加了简介引用之后,效率就会发生变化了实际使用中不是很好控制比如通常一个lua文件通常写成 local a = {} --或者 local a = class(
2016-04-26 10:58:05
13254
转载 2D OBB Intersection
http://www.flipcode.com/archives/2D_OBB_Intersection.shtml--------------------------------------------------------------------2D OBB IntersectionFor 2D graphics or movement of 3D objects on a 2D
2016-04-14 17:36:30
741
转载 Cocos2.2.6创建项目cd tools/project-creator/
http://blog.youkuaiyun.com/a542214712/article/details/20638477cd tools/project-creator/./create_project.py ./create_project.py -project hicoco -package net.ataworld.game -language cpp
2016-04-12 23:22:13
473
原创 Texture packer命令行加密
@echo offtexturepacker fishjoy_kind/*.png --data FishJoyKind.plist --sheet FishJoyKind.pvr.ccz --format cocos2d --texture-format pvr2ccz --content-protection ADEFB88CA0D7DE87EE82A3CD9B3FECDF --opt RGB
2016-04-06 15:39:06
979
转载 记录有用的开源库
一些开源库记录下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.
2016-03-24 18:45:40
382
转载 利用NDK崩溃日志查找BUG
摘要: 在android上开发c++应用, crash日志都是汇编码, 很难对应到c++代码中去. 通过此文, 你可以定位到程序崩溃时的C++代码, 精确查找问题.博客: http://www.cnblogs.com/jhzhu邮箱: jhzhuustc@gmail.com作者: 知明所以时间: 2014-06-20背景介绍本文主要内容: 利用android
2016-02-26 11:10:36
725
转载 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里面
2016-02-26 10:47:33
2451
原创 阅读lmathlib.c
1. 重要的结构 luaL_Regtypedef struct luaL_Reg { const char *name; lua_CFunction func;} luaL_Reg;typedef int (*lua_CFunction) (lua_State *L);可以用该结构做参数简单的来创建tableluaL_newlib(L, mathlib);这样在栈顶创
2016-02-17 19:30:01
776
转载 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
2016-02-17 18:56:22
616
翻译 苹果拒信2
2.2 - Apps that exhibit bugs will be rejected17.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
2016-02-17 14:12:50
1632
转载 “Operation could not be completed. (SKErrorDomain error 0.)”
http://stackoverflow.com/questions/6664778/error-domain-skerrordomain-code-0-operation-could-not-be-completed-skerrordomYou must logout from your iTunes account in the settings app. Then try aga
2015-12-21 16:07:32
1448
转载 动画
bool GameMain::init(){ if( !Layer::init()) return false; Size visibleSize = CCDirector::sharedDirector()->getVisibleSize(); bg = Sprite::create("battle.png"); bg->setPosition(
2015-12-15 13:49:15
489
转载 苹果的拒信
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 not adhere to the 4+ age rating will be rejected11
2015-12-01 15:47:44
6016
转载 IOS github一些开源库
keychainhttps://github.com/ldandersen/STUtilsIAPhttp://github.com/mugunthkumar/MKStoreKit
2015-11-27 18:17:38
421
转载 cocos2dx 画包围盒
cocos2dx 画包围盒virtual void draw(Renderer *renderer, const Mat4& transform, uint32_t flags);DrawNode* m_pDrawNode = nullptr; m_pDrawNode->clear(); m_pDrawNode->drawLine(Vec2(box.x
2015-11-25 12:40:44
1910
转载 Eclipse hangs at the Android SDK Content Loader
http://stackoverflow.com/questions/13489141/eclipse-hangs-at-the-android-sdk-content-loaderI've been working with Eclipse 4.2 (Juno release 20120920-0800) on OS X 10.8.2 for a few weeks now,
2015-11-24 17:17:03
464
转载 cocos2dx 3.6 webview背景透明(ios android)
cocos2dx 3.6 webview背景透明(ios android)
2015-11-24 16:09:37
4185
转载 Xcode7 *** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_
http://www.cnblogs.com/zhangyang17/p/4818466.html*** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, o
2015-11-13 15:05:55
3187
转载 苹果产品
http://www.ipadown.com/ http://topapp.net/ http://www.appolicious.com/ http://mobile.butterscotch.com/Mobile/IPhone/ http://wwdc.slidetoplay.com/ http://www.py.iphone-app-lists.com/ http:/
2015-11-12 17:45:01
436
转载 iOS7: 如何获取不变的UDID
http://www.cnblogs.com/smileEvday/p/UDID.html如何使用KeyChain保存和获取UDID 本文是iOS7系列文章第一篇文章,主要介绍使用KeyChain保存和获取APP数据,解决iOS7上获取不变UDID的问题。并给出一个获取UDID的工具类,使用方便,只需要替换两个地方即可。 一、iOS不用版本获取U
2015-11-12 17:07:44
1017
转载 IAP 的问题汇总
https://github.com/MugunthKumar/MKStoreKithttps://github.com/sckor/AnystoneStoreKit
2015-11-06 15:23:36
420
翻译 苹果开发的一些要求(汇总到这里)
iPad Pro Screenshots Now SupportedYou can now upload screenshots that are optimized for the iPad Pro. Screenshots for iPad Pro must be 2732 x 2048 pixels or 2048 x 2732 pixels in the JPG or PNG form
2015-11-06 14:50:00
451
转载 iOS9 HTTP 不能正常使用的解决办法
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.解决办法1使用HTTPS解决办法2:在Info.plist中添加NSAppTransportSecurity类型Dictionary。在NSA
2015-11-05 09:54:34
1328
转载 LUA XMLHttpRequest 中有个bug
http://www.cocoachina.com/bbs/read.php?tid-200293-page-e-fpage-20.htmlPS 3.6里面这个问题依然存在LUA XMLHttpRequest 中有个bug cocos2d-x 3.0 ,源码文件frameworks\cocos2d-x\cocos\scriptin
2015-08-11 11:35:10
2448
转载 删除所有.svn目录
删除所有.svn目录http://blog.youkuaiyun.com/xenron/article/details/5707159当使用了svn版本控制系统后每个目录下都会有一个.svn目录存在,开发完当交付产品或者上传到服务器时一般要把这些目录删除,这里总结了一下在linux和win下的办法。 一、在linux下删除这些目录是很简单的,命令如下 find .
2015-07-09 09:26:34
474
转载 android编译系统的makefile文件Android.mk写法
http://www.cnblogs.com/hesiming/archive/2011/03/15/1984444.htmlandroid编译系统的makefile文件Android.mk写法如下(1)Android.mk文件首先需要指定LOCAL_PATH变量,用于查找源文件。由于一般情况下Android.mk和需要编译的源文件在同一目录下,所以定义成如下形式:LOCA
2015-06-12 11:47:03
318
转载 C# 取得本机进程启动命令行参数
using System.Management; private void WmiTest(){using (ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE Proces
2014-11-06 15:29:49
3455
转载 C#检测进程运行状态
class Program { static void Main(string[] args) { Process[] processes = Process.GetProcesses(); foreach (Process process in processes)
2014-10-27 10:10:43
12419
原创 记录下stl vector不能乱用,注意
能一眼看出问题所在吗?#pragma pack(push)#pragma pack(1)struct test{public:test(): name(0) {}~test() {delete [] name;}int a;int aLen;char* name;};#pragma pack(pop)#define
2013-07-11 11:20:28
813
转载 ole date time 转换 tip 2209161600
1970-01-01 00:00=2209161600 1970-01-01 08:00=2209190400 HMS = #2007-03-16 21:23# Text1 = HMS * 24 * 3600-2209161600
2013-05-28 10:58:31
1033
转载 编译期递归的一个例子
fromhttp://stackoverflow.com/questions/4568645/printing-1-to-1000-without-loop-or-conditionals#include templatestruct NumberGeneration{ static void out(std::ostream& os) { NumberGenerat
2012-03-08 20:58:36
583
原创 关于Impl idiom
个人理解c++中头文件这种东西在项目大到一定规模以后,就是罪恶了。随便更改头文件里面某个class的private成员/函数,都会导致依赖文件的rebuild,编译时间增长Impl便是现在能够想到的,解决这个问题的方法 比如class a{ //.... public functionsprivate: funca(); funcb()
2010-05-14 13:06:00
1607
转载 VIM mass delete words based on spell
from vim user group ++++++++++++++++++++++++++++++++++++++++++++++++++++++I have a long list of words, on word per line. Many of the words arenot "words", i.e. not in a dictionary.I would like t
2010-03-04 21:24:00
835
原创 vim不能正确显示中文
这个问题可谓是老生常谈了,google下或者是百度下,都可以找到很多的答案。我自己的配置文件在我工作环境下面(中文字体好像只有两三种),中文字显示成为了框框。查看配置文件fileencodingsfileencodingtermencoding都已经设好并且,在vim中ggvG然后到notepad中c-v,notepad中能够显示。 搞了一会,发现搞不定,这时候大虾
2010-02-20 13:42:00
5486
3
C.Plus.Plus.Template.Metaprogramming.
2012-06-18
o'reilly - perl testing - a developer's notebook (2006).chm
2009-04-14
Addison.Wesley.xUnit.Test.Patterns.Refactoring.Test.Code.May.2007.pdf
2009-04-04
Compilers:Principles, Techniques, and Tools
2008-10-05
Compilers:Principles, Techniques, and Tools
2008-10-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人