This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
| # | A | B | C |
|---|---|---|---|
| 1 | a | b | slug |
| 2 | foo | baz bing | =slugify(A2:B4) |
| 3 | bar | BAZ | |
| 4 | FOO | baz-bing |
| #!/bin/bash | |
| # | |
| # Settings | |
| # | |
| DIRECTORY="drupal-project" | |
| # | |
| # Begin |
| <?php | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| $autoloadPath = 'autoload.php'; | |
| if (!file_exists($autoloadPath)) { | |
| $autoloadPath = '../' . $autoloadPath; | |
| if (!file_exists($autoloadPath)) { | |
| $autoloadPath = '../' . $autoloadPath; | |
| } |
This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
| # | A | B | C |
|---|---|---|---|
| 1 | a | b | slug |
| 2 | foo | baz bing | =slugify(A2:B4) |
| 3 | bar | BAZ | |
| 4 | FOO | baz-bing |
| <?php | |
| /** | |
| * @property integer $total Total entities in set | |
| * @property array $unchanged entities that were left unchanged | |
| * @property array $succeeded entities that was successfully migrated | |
| * @property array $failed entities that failed to migrate | |
| * @property bool $success if all the entities were successfully migrated | |
| */ | |
| class ContentEntityMigrationResult extends stdClass |
| /** | |
| * @param {object} settings | |
| * @param {object} options | |
| * @returns {object} | |
| */ | |
| function updateSettings(settings, options) { | |
| var updatedSettings = {}; | |
| if (typeof settings !== 'undefined') { | |
| Object.assign(updatedSettings, settings); | |
| } |
| (function (window) { | |
| // Based on https://stackoverflow.com/a/14570614/588973 | |
| window.observeDOM = (function () { | |
| var MutationObserver = window.MutationObserver || window.WebKitMutationObserver, | |
| eventListenerSupported = window.addEventListener; | |
| return function (obj, callback) { | |
| if (MutationObserver) { | |
| // define a new observer |
| <?php | |
| /** | |
| * @copyright Copyright (c) 2013-2017 2amigOS! Consulting Group LLC | |
| * @link http://2amigos.us | |
| * @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
| */ | |
| namespace dosamigos\tinymce; | |
| use yii\helpers\Html; | |
| use yii\helpers\Json; |
| <?php | |
| $config = [ | |
| 'components' => [ | |
| // [...] | |
| 'request' => [ | |
| 'baseUrl' => $params['backend.baseUrl'], | |
| ], | |
| 'urlManagerFrontend' => [ | |
| 'class' => 'yii\web\UrlManager', | |
| 'baseUrl' => $params['frontend.baseUrl'], |
| <?php | |
| use yii\bootstrap\ActiveForm; | |
| use yii\bootstrap\ActiveField; | |
| $activeField = new ActiveField(); | |
| ?><div class="tour-form"> | |
| <?php $form = ActiveForm::begin(); ?> | |
| <div class="form-horizontal"> | |
| <?php | |
| echo <<<HTML | |
| {$form->field( |