An example of messaging a user in CKEditor when data is filtered.
This file contains hidden or 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
| #!/bin/bash | |
| if [ $(id -u) != 0 ]; then | |
| printf "This script must be run as root.\n" | |
| exit 1 | |
| fi | |
| #TODO: change these variables to be the apache user and a group consisting of all users who | |
| # need write access | |
| drupal_path=${1%/} |
This file contains hidden or 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
| #encoding:utf-8 | |
| import re | |
| import sublime, sublime_plugin | |
| import xml.etree.ElementTree as ET | |
| class PhingCommand(sublime_plugin.WindowCommand): | |
| def run(self): | |
| if(len(self.window.folders()) == 0): | |
| print("No folders found.") |
This file contains hidden or 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 | |
| namespace NNLM\Drush\Utility; | |
| /** | |
| * | |
| */ | |
| class LinkTree { | |
| // The root of the node tree we will build | |
| private $root = NULL; |
This file contains hidden or 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
| #!/usr/bin/python | |
| #Script by Rishab Arora (spacetime), modified by Aron Beal | |
| from urllib import urlopen | |
| import smtplib | |
| import logging | |
| import socket | |
| sender = '[your email address]' | |
| recipients = ['[your email address again]'] | |
| subject = 'Nexus 6 back in stock!' |
This file contains hidden or 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
| var salt_url = function(url) { | |
| var salt_string = (new Date()).getHours(); //force hourly change for update | |
| var a = document.createElement('a'); | |
| a.href = url; | |
| //add in salt as a query parameter | |
| var modified_query_string = a.search; | |
| if (modified_query_string !== '') { | |
| modified_query_string += '&slt=' + salt_string; | |
| } else { | |
| modified_query_string = '?slt=' + salt_string; |
This file contains hidden or 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
| /** | |
| * Generic form of Gruntfile - moves task and configuration | |
| * definition to the grunt_tasks and grunt_tasks/options | |
| * folders, respectively for organization. | |
| */ | |
| module.exports = function(grunt) { | |
| 'use strict'; | |
| var path = require('path'); | |
| var timestamp = require('monotonic-timestamp'); |
This file contains hidden or 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
| <Virtualhost *:80> | |
| Options +Indexes +FollowSymLinks | |
| UseCanonicalName Off | |
| VirtualDocumentRoot [User home directory]/Sites/%1 | |
| php_value include_path ".:[User home directory]/Sites" | |
| AddType application/x-httpd-php .html | |
| ServerName dev | |
| ServerAlias *.dev | |
| ErrorLog "[User home directory]/Sites/logs/error_log" | |
| CustomLog "[User home directory]/Sites/logs/access_log" common |
This file contains hidden or 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
| │ Fields in node not in entity: Array | |
| │ ( | |
| │ [1] => cid | |
| │ [5] => data | |
| │ [43] => field_download_images | |
| │ [137] => last_comment_name | |
| │ [138] => last_comment_timestamp | |
| │ [139] => last_comment_uid | |
| │ [141] => name | |
| │ [143] => picture |
This file contains hidden or 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
| # Top level is a 'profile'. We have been correlating our profiles with drupal | |
| # content types. Time will tell if this is a best practice or not | |
| default: | |
| suites: | |
| default: | |
| contexts: | |
| - Drupal\DrupalExtension\Context\DrupalContext | |
| - Drupal\DrupalExtension\Context\MinkContext | |
| - Drupal\DrupalExtension\Context\MessageContext | |
| - Drupal\DrupalExtension\Context\DrushContext |
OlderNewer