- Event Name:
- Location:
- Date:
- Conference format: (number of days, tracks, and speakers)
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 | |
| class Example extends SourcePluginBase { | |
| public function prepareRow(Row $row) { | |
| parent::prepareRow($row); | |
| // I do some data manipulation to end up with an array that looks like this, | |
| // which I want to import into multi-value link field. | |
| $links = [ |
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
| #!/bin/sh | |
| # exit on any errors: | |
| set -e | |
| if [ $# -lt 1 ] | |
| then | |
| echo "Usage: $0 @pantheon-alias" | |
| exit 1 | |
| fi |
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 | |
| namespace Codeception\Module; | |
| /** | |
| * Additional methods for DB module | |
| * | |
| * Save this file as DbHelper.php in _support folder | |
| * Enable DbHelper in your suite.yml file | |
| * Execute `codeception build` to integrate this class in your codeception | |
| */ |
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 | |
| /** | |
| * @file Update script for image cache changes related to drupal 7.20 | |
| * | |
| * You will likely need to adjust the regexp and the $search and $replace | |
| * variables in cleanup(). Note that image_style_path_token generates | |
| * different tokens for different paths so you need to properly detect your | |
| * site URLs and rewrite them in the most robust pattern for your site. | |
| * | |
| * The existing patterns work with patterns like the following; |
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 entity_get_operation_links($entity_type, $entity, $base_path = NULL) { | |
| $build = array( | |
| '#theme' => 'links__operations__' . $entity_type, | |
| '#links' => array(), | |
| '#attributes' => array('class' => array('links inline')), | |
| ); | |
| list($entity_id) = entity_extract_ids($entity_type, $entity); |
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
| SELECT n.nid, n.title, fc.count | |
| FROM node n | |
| INNER JOIN flag_counts fc ON fc.content_id = n.nid | |
| ORDER BY fc.count DESC | |
| LIMIT 20; | |
| 691078 Field tokens 350 | |
| 1499460 [meta] New theme system 221 | |
| 494100 State of the multigroup module 218 |
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
| // Check existence | |
| function exists(thing) { | |
| return (!isNaN(thing) && typeof thing !== 'undefined' && thing !== null) ? thing : undefined; | |
| } | |
| // Or, more tersely | |
| function exists(thing) { | |
| // != checks `null` and `undefined` | |
| return thing != null ? thing : undefined; | |
| } |
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
| #!/bin/sh | |
| # | |
| # An example hook script to check the commit log message. | |
| # Called by "git commit" with one argument, the name of the file | |
| # that has the commit message. The hook should exit with non-zero | |
| # status after issuing an appropriate message if it wants to stop the | |
| # commit. The hook is allowed to edit the commit message file. | |
| # | |
| # To enable this hook, rename this file to "commit-msg". |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: