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 linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |
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 | |
| /** | |
| * Redis cache settings for Pantheon. | |
| * | |
| * http://helpdesk.getpantheon.com/customer/portal/articles/401317 | |
| * | |
| * All Pantheon Environments. | |
| */ | |
| if (defined('PANTHEON_ENVIRONMENT')) { | |
| // Use Redis for caching. (mandatory). |
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
| @import url("http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600|Open+Sans+Condensed:300,700"); | |
| img { | |
| border: 0; | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| .group-header { | |
| position: relative; |
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
| $(window).load(function() { | |
| $("[data-match-height]").each(function() { | |
| var parentRow = $(this), | |
| childrenCols = $("> [data-height-watch]", this), | |
| childHeights = childrenCols.map(function(){ return $(this).outerHeight(); }).get(), | |
| tallestChild = Math.max.apply(Math, childHeights); | |
| childrenCols.css('min-height', tallestChild); | |
| }); | |
| }); |
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
| /** | |
| * Load JavaScript Asynchronously | |
| * | |
| * usage: _async('//example.com/script.js', 'dom-id'); | |
| */ | |
| function _async(src, id) { | |
| setTimeout( | |
| function(d, s, id) { | |
| var js, fjs = d.getElementsByTagName(s)[0]; | |
| if (d.getElementById(id)) { |
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 | |
| /** | |
| * Sends a simple email. | |
| * [or] Tested on 2012-05-31 using Drupal 7.12 | |
| * | |
| * Usage: | |
| * 1) Paste all the below code into your module or include | |
| * 2) Configure the two @FIXME's. | |
| * 3) Visit /_custom_simple_mail to get an email. | |
| * |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>404 - Page not found!</title> | |
| <style> | |
| html, body { | |
| background: #222; | |
| color: #EEE; |
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
| $(document).ready(function () { | |
| $('<div id="WINDOW_SIZE">' + $(window).width() + 'x' + $(window).height() + '</div>') | |
| .attr('unselectable', 'on') | |
| .css({ | |
| 'position' : 'fixed', | |
| 'bottom' : 0, | |
| 'right' : 0, | |
| 'background' : '#000000', | |
| 'color' : '#FFFFFF', | |
| 'font' : '16px/1 sans-serif', |
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 | |
| /** | |
| * Implements hook_entity_info_alter(). | |
| */ | |
| function MYMODULE_entity_info_alter(&$info) { | |
| $info['node']['view_modes'] += array( | |
| 'node_feature' => array( | |
| 'label' => t('Featured'), | |
| 'custom settings' => TRUE, | |
| ), |
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
| /* Sitemap */ | |
| #ui-content .ui-block-menu_block { | |
| font-size: 13px; | |
| } | |
| #ui-content .ui-block-menu_block ul { | |
| line-height: 1; | |
| margin: 0; | |
| float: left; | |
| padding: 0; | |
| } |