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
/** | |
* @file | |
* Observer design pattern. | |
* | |
* This object will provide an observer design pattern. Observers may | |
* subscribe to specific message types. Observables may broadcast | |
* messages specific to a type. | |
* | |
* @author Bryan Hazelbaker <[email protected]> | |
* @version 1.0 |
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
00001 C Uniform PPCL Program Template 2.0. | |
00002 C Using the below template voids the need for goto statements. | |
00003 C Also, a software programmer that is unfamiliar with control work | |
00004 C will have an easier time examining this style of code. A modular | |
00005 C approach to coding is more standard in the software community; | |
00006 C though unfortunately virtually unheard of to a controls | |
00007 C programmer. The template begins at line 50. | |
00008 C | |
00008 C @see https://gist.github.com/delphian/5906264 | |
00009 C @see https://github.com/delphian/ppcl-library |
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
# Git-Completion | |
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: |
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
; @file drush-example-site.make | |
; @author Bryan Hazelbaker <[email protected]> | |
; | |
; @brief Drush make file to be processed by the `drush make` command | |
; | |
; @details Running drush make on this configuration file will download | |
; all specified modules, themes, and libraries into their respective | |
; directories. the `drush` command must first be installed to process | |
; this make file. | |
; |
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
# Remove the directories we are rebuilding | |
tar -czf /tmp/drush-backup-`date +%Y%m%d%H%M%S`.tar.gz modules libraries | |
rm -rf ./modules/contrib ./libraries | |
# Pull down the new code | |
drush make --yes --no-core --working-copy --contrib-destination=. ./site.make |
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 | |
# Site install script that will download the latest version of drupal, create | |
# a database in mysql, use drush to perform a site install, download | |
# and enable some handy contrib modules, and disable a few annoying | |
# core module. | |
# | |
# Copy and paste this into a shell to execute: | |
# curl -s https://gist.github.com/delphian/6043424/raw/ | bash | |
# |
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
git diff master --name-only | grep -E '(css|sass)' | xargs -I{} git checkout master {} |
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 | |
// To set up a local environment, make a duplicate of this file and name it | |
// local-settings.inc in the site directory that contains the settings.php file. | |
// Ignore sites/*/local-settings.php in the .gitignore file. Change the settings.php | |
// file to include local-settings.php if the file exists. | |
// Point database to local service. | |
$databases['default']['default'] = array( | |
'database' => 'local_db_name', |
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
/** | |
* More reliable way to hover over an element. Talk to selenium directly. | |
* | |
* @param string $selector | |
* CSS selector. | |
* @param int $sleep | |
* Number of seconds to sleep after hover is initiated. Allows some | |
* slower third party javascript to do its thing before moving on | |
* with more test steps. | |
* |
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
/** | |
* Select the first CSS element returned by findAll query. | |
* | |
* @param string $selector. | |
* CSS selector. | |
* | |
* @return NodeElement | |
* Or throws error if unable to locate. | |
*/ | |
protected function elementSelectFirst($selector) |
OlderNewer