Hotkey | Plugin/command |
---|---|
alt+shift+t |
TODO, FIXME, CHANGED, IDEA, HACK, NOTE, REVIEW |
shift+alt+p |
Project manager |
ctrl+shift+m |
Markdown preview |
ctrl+alt+o |
Remote FTP, FTPs, SSH |
ctrl+alt+b |
Beautify |
ctrl+alt+g |
Create GIST from 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
; @see https://www.drupal.org/node/542202 | |
name = Test | |
package = Custom | |
description = Description | |
core = 7.x | |
version = 7.x-0.1 | |
configure = admin/config/services/test | |
scripts[] = test.js | |
stylesheets[all][] = test.css | |
dependencies[] = jquery_update |
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_block_info(); | |
*/ | |
function hook_block_info() { | |
$blocks['test'] = array( | |
'info' => t('Description'), | |
'cache' => DRUPAL_NO_CACHE, | |
); |
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 | |
# ------------------------------------------------------------------------------ | |
# test.module | |
# ------------------------------------------------------------------------------ | |
/** | |
* Implements hook_theme(). | |
*/ | |
function test_theme() { | |
return array( | |
'test_panel' => 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 | |
# test.install | |
/** | |
* Implements hook_schema(). | |
* | |
* @see https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_schema/7.x | |
* @link https://www.drupal.org/node/146862 | |
*/ |
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
# test.module | |
<?php | |
/** | |
* Implements hook_menu(). | |
* | |
* @see https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7.x | |
*/ | |
function mymodule_menu() { | |
# In main menu. |
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
$(document).on('click', function(e) { | |
if($(e.target).closest("#block").length) { | |
return; | |
} | |
if (!$(e.target).closest(".control").length) { | |
// hide element; | |
e.stopPropagation(); | |
} |
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 > ul { | |
visibility: hidden; | |
opacity: 0; | |
transition: visibility 0s, opacity 0.5s linear; | |
} | |
div:hover > ul { | |
visibility: visible; | |
opacity: 1; | |
} | |
/* Copyright: http://stackoverflow.com/questions/3331353/transitions-on-the-display-property#answer-6943704 */ |
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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.0 php7.0-mysql php7.0-gd php-xml php7.0-mbstring php7.0-zip php-curl | |
# Change version php for Apache | |
sudo a2dismod php5.6 | |
sudo a2enmod php7.0 | |
sudo service apache2 restart |
OlderNewer