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
{{ streams:single stream="shows" id="1" }} | |
<div class="one_half"> | |
{{ date }} |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Show Twitter streams in your site | |
* | |
* @author Phil Sturgeon | |
* @author PyroCMS Dev Team | |
* @package PyroCMS\Core\Widgets | |
*/ | |
class Widget_Twitter_feed extends Widgets |
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
#!/usr/bin/php -q | |
<?php | |
/* | |
Ampp3d - Ampp3d Google Analytics | |
Version: 0.1 | |
Author: William Turrell | |
Author URI: wturrell.co.uk | |
Description: Use Google Analytics API to retrieve most popular pages and construct an HTML fragment we can use | |
Adapted from http://www.techpunch.co.uk/development/oauth2-google-analytics-api-service-account-php and | |
https://github.com/lobsterdore/analytics-api-oauth2-example/blob/master/mostPopularContentExample.php |
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
######################################################### | |
# Remote MySQL Backup and Download | |
# Author: Brian Strickland | |
# | |
# 1) Log into a remote server | |
# 2) Run a MySQL dump on a database | |
# 3) Copies the dump to the local machine. | |
# | |
# You can use this for any database/server, just change | |
# the top parameters. |
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
ampp3d.chartConfigs.chart_scottish_referendum_1 = { | |
margins: { | |
top: 10, | |
right: 10, | |
left: 30, | |
bottom: 80 | |
}, | |
api_version: 1, | |
type: 'scatter-plot', // 'scatter-plot', 'line' or 'column' | |
data: '/wp-content/uploads/2014/06/scotland-full-data.csv', |
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 for content-length mismatch problems with Drupal repository | |
// (adapted from mickaelperrin/test.php) | |
// william@wturrell.co.uk 20161031 | |
$test_urls = [ | |
'http://cgit.drupalcode.org/drupal/plain/.csslintrc?h=8.2.1', | |
'http://cgit.drupalcode.org/drupal/plain/.htaccess?h=8.2.1', |
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
--- | |
# Add the DotDeb repositories needed to install an http2 compatible Nginx | |
# see: https://www.dotdeb.org/instructions/ | |
# | |
# Note | |
# - as we're doing multiple steps we turn update_cache off until the end | |
# to save time. | |
# - apt_repository install things in /etc/apt/sources_list.d/ | |
- hosts: | |
- [insert your host name(s) here] |
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
{ | |
"name": "drupal-composer/drupal-project", | |
"description": "Project template for Drupal 8 projects with composer", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"authors": [ | |
{ | |
"name": "", | |
"role": "" | |
} |
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
{ | |
"name": "drupal-composer/drupal-project", | |
"description": "Project template for Drupal 8 projects with composer", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"authors": [ | |
{ | |
"name": "", | |
"role": "" | |
} |
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
"use strict"; | |
// Gulp 4.0.0 + SASS, minification, TailwindCSS, PHP and BrowserSync support | |
// (assumes you have your .scss + .css files in a /css directory) | |
// william@wturrell.co.uk | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
cssnano = require('gulp-cssnano'), | |
php = require('gulp-connect-php'), |
OlderNewer