sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove current php & apache | |
| sudo service httpd stop | |
| sudo yum remove httpd* php* | |
| # Remove any third party repos that aren't relevant | |
| sudo yum repolist | |
| sudo yum remove remi-safe | |
| # Install Standard Apache for Amazon AMI | |
| sudo yum install httpd #specify http22 if you get a different version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .bashrc | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | |
| fi | |
| # get current status of git repo | |
| function parse_git_branch { | |
| status=`git status 2>&1 | tee` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package services | |
| import javax.inject.Singleton | |
| import java.util.UUID | |
| /** | |
| * A type declaring the interface that will be injectable. | |
| */ | |
| abstract class UUIDGenerator() { | |
| def generate: UUID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1='\[\e[1;32m\][\u@ServerName \W]\$\[\e[0m\] ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // As a onClick event | |
| void HelloWorld::onClick() | |
| { | |
| // Setting HTTP Request Header | |
| std::vector<std::string> headers; | |
| headers.push_back("Content-Type: application/json; charset=utf-8"); | |
| // Creating a URL | |
| cocos2d::extension::CCHttpRequest * request = new cocos2d::extension::CCHttpRequest(); | |
| request->setUrl("http://example.com"); |
NewerOlder