Skip to content

Instantly share code, notes, and snippets.

@belm
belm / github_member_developer
Last active September 20, 2021 13:41
GitHub 多人协作开发
GitHub 多人协作开发 三种方式:
一、Fork 方式 网上介绍比较多的方式(比较大型的开源项目,比如cocos2d-x)
开发者 fork 自己生成一个独立的分支,跟主分支完全独立,pull代码后,项目维护者可根据代码质量决定是否merge代码
此方式网上方法比较多,这里不详细描述
有两种常用的方法在GitHub上建立团队合作:
二、组织 – 组织的所有者可以针对不同的代码仓库建立不同访问权限的团队。
Accounts Settings => Organizations =>Create new Organizations 新建一个组织 然后添加项目成员,根据提示设置完毕即可。
新建一个Repository 新建完毕后 进入Repository的Settings =>Collaborators 在Teams下面点击刚创建的组织 比如eveloper-51/owners
@belm
belm / gist:e9fb50815c4a5e438f70
Created May 23, 2015 09:59
centos yum install apache maven
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install apache-maven
@belm
belm / gist:7007763
Last active June 20, 2017 09:20
Bootstrap 模板或者一些漂亮的站点
https://wrapbootstrap.com/
https://wrapbootstrap.com/theme/ace-responsive-admin-template-WB0B30DGR
这有一些theme
http://wrapbootstrap.com/
http://ajkochanowicz.github.com/Kickstrap/index.html
http://bootswatch.com/
@belm
belm / gist:7040715
Last active December 25, 2015 21:09
windows 安装apache + php + mysql
主要是
①php.ini 修改php根目录下面的配置文件 为php.ini
②php.exe所在目录 加入环境变量 path
③httpd.conf 添加php扩展dll
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
绿色版 apache 修改项目路径
④启动apache 和启动windows的PHP文件夹里面的php-cgi
@belm
belm / gist:7035308
Created October 18, 2013 01:53
Mark Sprite touchable
// Make hero touchable
auto listener1 = EventListenerTouch::create(Touch::DispatchMode::ONE_BY_ONE);
listener1->setSwallowTouches(true);
listener1->onTouchBegan = [](Touch* touch, Event* event){
auto target = static_cast<Sprite*>(event->getCurrentTarget());
Point locationInNode = target->convertToNodeSpace(touch->getLocation());
Size s = target->getContentSize();
@belm
belm / gist:7024451
Created October 17, 2013 12:59
如何彻底隐藏iOS7应用的status bar
还是回到Info.plist,然后添加一个新的row,"View controller-based status bar appearance",然后把键值设置为NO.
再测试,终于ok了。
@belm
belm / gist:6987213
Created October 15, 2013 06:08
使用python脚本 创建cocos2d-x 3.0 多平台项目
python create-multi-platform-projects.py -p Shoot -k com.belmeng.shoot -l cpp
@belm
belm / gist:6986782
Created October 15, 2013 05:09
test gists
what is gist?
@belm
belm / gist:6986799
Created October 15, 2013 05:11
save my code
I know what it can do ,its very good ,I like it! fast