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
| # Install Xcode | |
| xcode-select --install | |
| # Install Homebrew. | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew doctor | |
| brew update | |
| # Install git. | |
| brew install git |
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
| # Install python | |
| brew install python | |
| # Add python to path. | |
| # export PATH=/usr/local/share/python:$PATH | |
| # Install virtualenv. | |
| pip install virtualenv | |
| # Create virtual environment for the project. |
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
| # Install compass | |
| gem update --system | |
| gem install compass | |
| # Force compile all SASS files. | |
| compass compile -e production --force | |
| # Clear registry/memcache on Acquia | |
| echo -e "flush_all\r\nquit" | nc `hostname -s` 11211 |
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
| server { | |
| listen 127.0.0.1:80; | |
| server_name local.graphite.org; | |
| access_log /usr/local/var/log/nginx/graphite.access.log; | |
| error_log /usr/local/var/log/nginx/graphite.error.log; | |
| root /var/www/graphite.org/source/www/docroot; | |
| location / { | |
| try_files $uri @rewrite; | |
| } |
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
| <?php | |
| // Hook theme. | |
| function tlr_learning_rating_theme() { | |
| return array( | |
| 'learning_rating_rate' => array( | |
| 'template' => 'templates/block_learning_rating_rate', | |
| ), | |
| ); | |
| } | |
| ?> |
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
| <?php | |
| function tlr_blog_preprocess_node(&$variables) { | |
| global $user; | |
| $node = $variables['node']; | |
| if ($node->type == 'tlr_blog') { | |
| $blog = new TLRBlog($node->nid); | |
| $account = $blog->get_user(); |
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
| (function($) { | |
| Drupal.behaviors.drinks = { | |
| attach: function(context, settings) { | |
| var drinkType = settings.drinks.page_type; | |
| alert('This page is of type: ' + drinkType); | |
| } | |
| } | |
| })(jQuery); |
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
| <div class="coming-soon"> | |
| <h1><?php print $node->title; ?></h1> | |
| This is a coming soon review | |
| </div> |
OlderNewer