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
/** | |
* Page preprocess. | |
*/ | |
function phptemplate_preprocess_page(&$variables) { | |
// Return the fully rendered search block, and its SimpleXMLElement equivalent. | |
$block = theme('block', (object) module_invoke('google_appliance', 'block', 'view', 'google_search')); | |
$block_xml = new SimpleXMLElement($block); | |
// Parse out $form['#prefix'] and $form['#suffix'] | |
$prefix = $block_xml->xpath('//form/preceding-sibling::*[1]'); |
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
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
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
#!/bin/bash | |
PSITE='your-site-name' | |
PUUID='aaaaaaaa-1111-bbbb-2222-cccccccccccc' | |
PEMAIL='[email protected]' | |
PPASS='your-password-here--i-know' | |
# Authenticate with Terminus | |
drush pauth $PEMAIL --password=$PPASS |
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
#!/bin/bash | |
# | |
# Useful for switching between PHP versions (CLI and NGINX PHP-FPM) on OS X. Assumes | |
# you've installed PHP via brew, maybe like so: | |
# - brew install php56 && cp /path/to/cellar/php56/5.6.*/*.plist ~/Library/LaunchAgents/ | |
# | |
# Installation: | |
# - curl https://gist.githubusercontent.com/iamEAP/c7464c7b42583baba98b/raw/.usephp > ~/.usephp | |
# - echo "[[ -s \"\$HOME/.usephp\" ]] && source \"\$HOME/.usephp\" # Load usephp as a function" >> ~/.bash_profile |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
--- | |
name: Eric Peterson | |
email: [email protected] | |
favSkills: | |
- php | |
- js | |
- api | |
- modules | |
- performance | |
- tableau |
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
<script src="es6-promise.min.js"></script> | |
<script src="jquery.min.js"></script> | |
<script src="wdc-sdk.js"></script> | |
<script src="your_wdc.js"></script> |