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
UPDATE_NAME="test"; | |
UPDATE_DIR="/www/drupal-test"; | |
UPDATE_BRANCH="test" | |
cd $UPDATE_DIR; | |
git fetch origin; | |
git status; | |
read -p $'\e[34mPull new code from '$UPDATE_BRANCH$'? [y] \e[0m'; | |
if [[ $REPLY =~ ^[Yy]$ ]] |
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
(function($, d3) { | |
console.clear(); | |
$(document).ready(function() { | |
d3.json("data.json", function(error, json) { | |
if (error) return console.warn(error); | |
data = json; | |
visualizeit(data); | |
}); |
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 | |
// Disable default configurations of several modules for several hooks to remove | |
// them from the installation or make them exportable via features. | |
$conf['disable_defaults'] = array( | |
// Entityform shall not take full control over aliases and menu links. | |
'entity_presave' => array( | |
'entityform', | |
), | |
'flag_default_flags' => array( |
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 | |
/** | |
* @file | |
* Disable features components for export and display. | |
*/ | |
/** | |
* Implements hook_features_api_alter(). | |
*/ |
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 | |
/** | |
* @file | |
* Make features components of disabled modules available again. | |
*/ | |
/** | |
* Implements hook_system_info_alter(). | |
*/ |
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
<div> | |
Hello World! | |
</div> |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkIAAADICAYAAAAEE46XAAAgAElEQVR4Xu2dXZBU1bXH17zFWxUrkreBqqhgBb0aNXGIL1dQo/gkiHnQqkRQ7wsfitFUEhSNifiRW1fiB8KLFwa9FXlQPnxS/AKfDGP8rsSUoFglvAWspOomb/uudWYaerpPd58+fU73/vidqkMPM+fsvdZvnZ7+z9pr7z0mHBCAAAQgAAEIQCBRAmOJ+o3bEIAABCAAAQhAQBBCPAQQgAAEIAABCCRLACGUbOhxHAIQgAAEIAABhBDPAAQgAAEIQAACyRJACCUbehyHAAQgAAEIQAAhxDMAAQhAAAIQgECyBBBCyYYexyEAAQhAAAIQQAjxDEAAAhCAAAQgkCwBhFCyocdxCEAAAhCAAAQQQjwDEIAABCAAAQgkSwAhlGzocRwCEIAABCAAAYQQzwAEIAABCEAAAskSQAglG3ochwAEIAABCEAAIcQzAAEIQAACEIBAsgQQQsmGHschAAEIQAACEEAI8QxAAAIQgAAEIJAsAYRQsqHHcQhAAAIQgAAEEEI8AxCAAAQgAAEIJEsAIZRs6HEcAsMm4L6jPZ6t58V6nqWn/f+cJiua//+Bfv/rFgsPzPx/5mdjB4ftAf1BAALxEUAIxRdTPIKABwQy0bNYz0v1vETPJTUZ9YW2a8LoQz1VKCGOauJMsxCIlgBCKNrQ4lhnAs4+oO0o8uGsH67ZoR+0Y60ZCiCfIuC+pV9er+fyGa6W8RnVYTGzc6/GzAQSBwQgAIGOBBBCPByRE8gyE8tmPpwtM9E8FNOv7yenBVGWgbAPWn0d+7LfRuK5PhM/t+h5q57G1sfDMkb79Hwi7Vj5GBpsgoAfBBBCfsQBKyolkImflXquGlD4FLGq8UGrwmjMPnATOJwJS+N7Q2DOvqX2TmqcngvMbsyFAARqJIAQqhEuTQ+bQDbk9Ws9rxx2z0397dGvdUhGXo5rKO1U9ueusuLyG98UN/ |
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 | |
/** | |
* Implements hook_system_info_alter(). | |
*/ | |
function mycustom_system_info_alter(&$info, $file, $type) { | |
static $files_status = array(); | |
// We want to remove features info from disabled obsolete modules, so we get a | |
// clean component list with all available components. |
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
<ul class="menu-nose"> | |
<li class="active">Item 1</li> | |
<li>Item 2</li> | |
<li>Item 3</li> | |
<li>Item 4</li> | |
</ul> |
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
<div class="wrapper"> | |
<div class="content"> | |
<p> | |
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | |
</p> | |
</div> | |
<div class="bottomic">Downloads & publications</div> | |
</div> | |
<div class="wrapper"> |