SVG template to create responsive D3.js charts.
Starting point from Making Inline SVG Responsive
<div id="middle"> | |
<section id="front-main-highlight" class="block"> | |
<article class="view-mode-main_highlight"> | |
<div class="main-image-container"> | |
<img src="http://placehold.it/5x2" class="main-image"/> | |
</div> | |
<h1 class="title"> | |
Main hightlight title | |
</h1> | |
<p class="lead"> |
#!/usr/bin/env drush | |
$params['vocabulary'] = drush_shift(); | |
drush_print($params['vocabulary']); | |
$vid = db_query( | |
"SELECT vid FROM {taxonomy_vocabulary} WHERE machine_name=:vocab", | |
array(':vocab' => $params['vocabulary']) | |
)->fetchField(); | |
drush_print($vid); |
#!/bin/bash | |
# Watch Compass project dir for changes using inotifywait, | |
#+which is more sustainable in the long run than 'compass watch'. | |
# | |
# In Debian: apt-get install inotify-tools | |
# First parameter is the project dir | |
project_dir="${1?Compass project dir expected as first parameter}" | |
# Rest of the arguments will be passed to compile command | |
shift |
#!/bin/bash | |
# Save as .git/hooks/prepare-commit-msg (or if one exists, append to it) | |
# and execute `chmod a+x .git/hooks/prepare-commit-msg` | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=() | |
fi |
<div class="container"> | |
<div id="burst-12"> | |
<p class="offer">39€</p> | |
</div> | |
</div> |
<?php | |
use Drupal\Core\Language\LanguageInterface; | |
use Drupal\Core\Url; | |
/** | |
* Implements hook_language_switch_links_alter(). | |
* | |
* Replaces links in language switcher block with links to front page. | |
*/ |
<div class="supercontainer"> | |
<div class="container"> | |
</div> | |
</div> | |
<div class="hidden"> | |
<div id="bg-element" class="element"> | |
Lorem ipsum dolor sit amet | |
</div> | |
</div> |
SVG template to create responsive D3.js charts.
Starting point from Making Inline SVG Responsive
<?php | |
/** | |
* @file | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/example.com/settings.local.php', where example.com | |
* is the name of your site. Then, go to the bottom of | |
* 'sites/example.com/settings.php' and uncomment the commented lines that |
#!/bin/bash | |
# Save as .git/hooks/prepare-commit-msg (or if one exists, append to it) | |
# and execute `chmod a+x .git/hooks/prepare-commit-msg` | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=( master ) | |
fi |