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
| # @file | |
| # .travis.yml - Drupal 8 Travis CI Integration | |
| language: php | |
| sudo: false | |
| php: | |
| # - 5.5 | |
| - 5.6 |
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
| # @file | |
| # .travis.yml - Drupal 8 Travis CI Integration | |
| language: php | |
| php: | |
| - 5.6 | |
| mysql: | |
| database: drupal |
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 | |
| global $user; | |
| $party = party_user_get_party($user); | |
| $statuses = array( | |
| 'clinks_ticket_member_voluntary' => 'Voluntary Sector Member', | |
| 'clinks_ticket_member_associate' => 'Associate Member', | |
| 'clinks_ticket_member_consultant' => 'Consultant Member', | |
| 'clinks_ticket_member_public_indiv' => 'Individual Public Sector Member', | |
| 'clinks_ticket_member_indiv' => 'Individual Member', |
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
| // 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 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 | |
| # Removes an existing Drupal 8 install, then install again. | |
| # Requires Drush 7 - https://github.com/drush-ops/drush | |
| # | |
| # Run this script from the docroot of a Drupal 8 checkout. | |
| # Installs to mysql://localhost/drupal, user 1 user/pass is admin/admin. | |
| if [ ! -e ./core/core.services.yml ] | |
| then |
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
| \o/ | |
| /ǒ\ | |
| /o/ | |
| /o\ |
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 | |
| * DrushRC file for http://project.com | |
| */ | |
| $aliases['local'] = array ( | |
| 'root' => '/var/www/project/site', | |
| 'uri' => 'http://project.dev', |
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 | |
| /** | |
| * Unpublish CD and DVD mediums fro talks. | |
| */ | |
| function sss_tweaks_update_7002(&$sandbox) { | |
| $query = "SELECT nid FROM {node} WHERE type='talks'"; | |
| // Set up vars. | |
| if (!isset($sandbox['total'])) { |
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 | |
| $fid = ''; // ID of the file you want to license. | |
| $uid = ''; // ID of the user receiving the license. | |
| $line_item_id = ''; // Optional - Id of line item in an order owned by the user. | |
| // Get the entities. | |
| $user = user_load($uid); | |
| $file = file_load($fid); |
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
| Create a .gitignore file in your home directory and then run: | |
| git config --global core.excludesfile '~/.gitignore' |