代码改变世界

阅读排行榜

cocos2dx ResolutionPolicy

2013-08-20 14:38 by anjsoft, 1382 阅读, 收藏,
摘要: FrameSize参数,在游戏运行时,我们可以通过CCEGLView::sharedOpenGLView()->getFrameSize();如果在手机上运行,那么不同分辨率将会得到不同的值CCEGLView::sharedOpenGLView()->setDesignResolutionSize(720, 480, kResolutionShowAll);CCEGLView::sharedOpenGLView()->setDesignResolutionSize(720, 480, kResolutionExactFit);CCSize winSize = CCDirect 阅读全文

java从c struct传来的字节数组中取值

2013-11-27 17:25 by anjsoft, 591 阅读, 收藏,
摘要: public int getInt(byte[] array,int index) { return (array[index] & 0xff) | (array[index + 1] & 0xff)>> 8); array[index + 2] = (byte) (value >>> 16); array[index + 3] = (byte) (value >>> 24); } } 阅读全文

centos7 install magento

2014-01-25 10:21 by anjsoft, 415 阅读, 收藏,
摘要: http://mirrors.yun-idc.com/epel/7/x86_64/e/epel-release-7-2.noarch.rpmrpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7yum install yum-prioritiesyum in... 阅读全文

精通UNIX下C语言编程与项目实践

2013-08-23 21:41 by anjsoft, 367 阅读, 收藏,
摘要: cc -I //include 目录 -L //静态库目录?动态也可以 -l //小写L,接静态库名称?动态也可以 -DXXX=‘“XXFF”’ //-D直接定义宏 -c 只编译 -O 优化 -g 生成调试信息 splint , gprof, cflow , dbx , gdb ,sdb //除了工具,还有日志记录调试更便捷 动态库:隐式调用 自动加载,与静态库一致 使用时,cc 后面加上路径... 阅读全文

mac定时任务

2014-11-13 11:08 by anjsoft, 336 阅读, 收藏,
摘要: Labelanjsoft.xxxx.plistProgramArgumentsxxxx.shStartCalendarIntervalMinute0KeepAliveLaunchOnlyOnceRunAtLoadplist脚本存放路径为/Library/LaunchDaemons或/Library/... 阅读全文
1 2 3 4 5 ··· 9 下一页