Skip to content

Instantly share code, notes, and snippets.


Phil Wolstenholme philwolstenholme

View GitHub Profile
philwolstenholme / bookmarklet
Created Apr 24, 2015
Lorem ipsum bookmarklet
View bookmarklet
View gist:bebd63911db7011a7a1b
// ==UserScript==
// @name Extended Jira timestamps
// @namespace
// @version 0.1
// @author Phil Wolstenholme
// @match*
// @grant none
// @downloadURL
// @updateURL
// ==/UserScript==
philwolstenholme / gist:203c586fdfd99169c3c4
Created Apr 26, 2015
Add a theme-color meta tag to your Drupal site (within your theme's template.php)
View gist:203c586fdfd99169c3c4
* Implements template_preprocess_html()
* Preprocess variables for the html template file.
function YOUR_THEME_NAME_preprocess_html(&$variables) {
$android5_theme_color = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
philwolstenholme / StupidJira.js
Last active Oct 28, 2015 — forked from mikebell/StupidJira.js
Adds an input to the Jira operations toolbar which contains a git command to create a new branch
View StupidJira.js
// ==UserScript==
// @name StupidJira
// @namespace
// @version 0.1
// @description Add branch details
// @match*
// @grant none
//allow pasting
// ==/UserScript==
View SassMeister-input-HTML.html
<div class="container">
<div class="box">Kinda works</div>
<div class="container">
<div class="box">Shame the gutter is applied with padding rather than a margin though</div>
View Suresh's clever breakout class
Credit to, I'm just saving this as a gist for my own reference
/* Content to extend beyond the boundaries of our container and span
to full width of viewport */
.u-breakout {
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
clear: both;
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//"></script>
View views-page-title.php
* Implements hook_views_post_render().
function MODULE_NAME_views_post_render($view) {
if ($view->id() !== 'VIEW_ID' && $view->getDisplay()->getPluginId() !== 'page') {
philwolstenholme / gist:18bc65971a57f6956d67
Created Aug 3, 2014
IRCC request to pause a Sony smart TV
View gist:18bc65971a57f6956d67
<?xml version="1.0"?>
<s:Envelope xmlns:s="" s:encodingStyle="">
<u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1">