摘要: 宜食水果:梨,苹果,柠檬,椰汁,枣,柚子蔬菜:山药,百合,木耳,藕,芹菜,苋菜,番茄,紫菜,黑木耳,金针菇,豆制品能量食品:鲜枣,椰子,葡萄干,花生 忌食公鸡,鲤鱼,牛肉,羊肉,鸡皮,猪油,五花肉,羊肉,狗肉,海鲜,白酒,腐乳,动物内脏,奶油甜品,油炸肥腻 阅读全文
posted @ 2018-02-09 18:07 柳刚 阅读(112) 评论(0) 推荐(0) 编辑
摘要: # Mac ## 安装: ### 在 https://dev.mysql.com/downloads/mysql/ 下载对应版本 ### 双击解压 mysql-test-8.0.12-macos10.13-x86_64.tar.gz ### 将解压文件拷贝到 /usr/local/ 新建mysql目 阅读全文
posted @ 2021-11-27 16:56 柳刚 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: 在git仓库根目录使用以下命令得到压缩包 git diff --name-only 开始版本的提交id 结束版本的提交id | xargs zip 版本号.zip 阅读全文
posted @ 2019-12-05 11:42 柳刚 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: typedef struct __lock_t { int flag; } lock_t; int TestAndSet(int *ptr, int new) { int old = *ptr; *ptr = new; return old; } void init(lock_t *mutex) { 阅读全文
posted @ 2019-07-29 23:18 柳刚 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 环境准备: 在已经安装好cocos环境的情况下,需再安装python 的yaml:sudo python -m easy_install pyyaml 然后:sudo easy_install pyyaml,如果报错再来一遍 安装Cheetah,下载cheetah:http://pythonhost 阅读全文
posted @ 2019-07-29 18:23 柳刚 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 在工程添加:SystemConfiguration.framework 去苹果API里搜索Reachability,下载Demo(点击左上角Download Sample Code 即可下载),把demo里的Reachability.h和Reachability.m拖到自己的工程里。也可以在百度里面 阅读全文
posted @ 2019-06-28 17:37 柳刚 阅读(528) 评论(0) 推荐(0) 编辑
摘要: linux环境生成比较方便,只需要配置好java环境,openssl系统已经集成。生成命令:keytool -exportcert -alias 别名 -keystore 签名文件 | openssl sha1 -binary | openssl base64提示输入签名密码,输入密码后生成face 阅读全文
posted @ 2019-06-11 16:31 柳刚 阅读(1327) 评论(0) 推荐(0) 编辑
摘要: 问题原因是 触控把Cocos Studio的统计服务器停掉了,studio会用同步的方式去上报统计数据导致的问题。 解决方案是禁止cocos studio联网 1、前往文件夹 /etc/hosts 2、将hosts文件拷贝到桌面,用文本编辑器打开 加入以下代码: # coco studio 127. 阅读全文
posted @ 2019-03-07 14:57 柳刚 阅读(549) 评论(0) 推荐(0) 编辑
摘要: @parm cc.c4b(0,0,0,255) cc.4b颜色值 @parm 1 描边宽度 方法: enableOutline(cc.c4b(0,0,0,255), 1) 阅读全文
posted @ 2019-02-16 15:13 柳刚 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 获取 本机 公网iphttp://ip-api.com/json 阅读全文
posted @ 2019-01-14 15:00 柳刚 阅读(202) 评论(0) 推荐(0) 编辑
摘要: var str = "hello world!"; var new_str = str.toUpperCase(); conlose.log(new_str); HELLO WORLD! new_str = str.toLowerCase(); hello world! 阅读全文
posted @ 2018-10-10 15:06 柳刚 阅读(827) 评论(0) 推荐(0) 编辑