A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| { | |
| "name": "Drupal 8 Composer Build", | |
| "description": "Project json for a Drupal 8 sites", | |
| "type": "project", | |
| "require": { | |
| "composer/installers": "^1.0.20", | |
| "drupal-composer/drupal-scaffold": "^2.0.0", | |
| "cweagans/composer-patches": "^1.5.0", | |
| "drupal/core": "~8", | |
| "drupal/lightning": "~8.1", |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
This configuration is no longer updated
| #!/bin/bash | |
| # TO CONFIGURE | |
| DRUSH='/usr/local/bin/drush' | |
| DUMP_SUBFOLDER='dumps' | |
| DUMP_NAME=$1 | |
| DRUPAL_ROOT=`$DRUSH st drupal_root --format=list` | |
| DRUPAL_CONFIG=`$DRUSH st active_config_directory_path --format=list` | |
| DUMP_DIR="$DRUPAL_ROOT/$DUMP_SUBFOLDER/$DUMP_NAME" |
| Array | |
| ( | |
| [hook_menu] => 6744 | |
| [hook_uninstall] => 4742 | |
| [hook_perm(ission)] => 4012 | |
| [hook_install] => 3751 | |
| [hook_theme] => 3525 | |
| [hook_schema] => 3003 | |
| [hook_help] => 2465 | |
| [hook_form_alter] => 2273 |
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| USER="$1" | |
| HOST="$2" | |
| DB="$3" | |
| DATE=`date +%Y%m%d` | |
| # Get User Password | |
| echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| USER="$1" | |
| HOST="$2" | |
| DB="$3" | |
| DATE=`date +%Y%m%d` | |
| # Get User Password | |
| echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |
| <?php | |
| /** | |
| * Country list ISO-3166-1 (ALPHA 2) in french | |
| */ | |
| function countries() { | |
| $countries = array( | |
| 'AF' => 'Afghanistan', | |
| 'ZA' => 'Afrique Du Sud', | |
| 'AX' => 'Åland, Îles', |