This file contains 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
# facebootstrap: Rails3 template | |
app_h_name = app_name.gsub(/_/, '-') | |
app_c_name = app_name.classify | |
ruby_version = '1.9.3-p194' # Specify your ruby version. | |
# Specify your git repo path | |
repository_path = "git@github.com:chsh/#{app_h_name}.git" | |
target_branch = 'master' # or develop or ... | |
deploy_server = 'Specify your deploy server FQDN.' | |
target_mode = 'staging' # or 'live' or ... |
This file contains 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
* Install Xcode | |
App Store -> Search Xcode -> Download -> Install | |
* Install Command line tools | |
Launch Xcode -> Preferences -> Downloads -> Install command line tools | |
* Install Homebrew | |
$ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go) | |
* Install rbenv ruby-build |
This file contains 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
<?php | |
class ChangeThemeByModule extends XCube_ActionFilter | |
{ | |
public function postFilter() | |
{ | |
$dirname = null; | |
if ( isset($this->mRoot->mContext->mModule->mXoopsModule) and is_object($this->mRoot->mContext->mModule->mXoopsModule) ) { | |
$dirname = $this->mRoot->mContext->mModule->mXoopsModule->get('dirname'); | |
} |