Skip to content

Instantly share code, notes, and snippets.

View grasuth's full-sized avatar

Graeme Sutherland grasuth

View GitHub Profile
QRL,QRM,QRN,QRQ,QRS,QRZ,QTH,QSB,QSY,qrp,R,TU,rtu,thx,name,rst,cq,agn,ant,dx,es,fb,gm,ga,ge,hi,hr,hw,nr,om,pse,pwr,wx,73,=,+,SK,(,BK,sota,/m,/p,op,88,44,cpy,gl,cu,tks,ref,cfm,5nn,55n,599,DR
Testing Gist for thegrid
@grasuth
grasuth / gist:bddd7ae6a0bf5d357595
Last active August 29, 2015 14:04
User story body (Jira etc)
h3. Background
h3. Narrative
As a ..., I want ..., so that ...
h3. Acceptance Criteria
h3. Notes
Ref: CL.C0011.CM.11.07.14
Dear Graeme,
Thank you for getting in touch. As you know, I am wholly opposed to the
Government's proposals to require communications service providers to continue
the blanket retention of our data.
It's worrying enough that this has been going on at all, and deeply disturbing
that the Government wants to continue despite the practice having been ruled in
Ref: CL.C0011.CM.11.07.14
Dear Graeme,
Thank you for getting in touch. As you know, I am wholly opposed to the Government's proposals to require communications service providers to continue the blanket retention of our data.
It's worrying enough that this has been going on at all, and deeply disturbing that the Government wants to continue despite the practice having been ruled in breach of our fundamental human rights. Please be assured I will be voting against the Data Retention and Investigation Powers Bill on Tuesday, and also working with the small group of other MPs who share my position to try to amend it. There is cross party support for the legislation from the Coalition and the official opposition, so any amendments will probably be focussed on timescales and securing an earlier expiry date than is currently proposed.
If I get the opportunity to speak during the debate I will set out my objection to the Bill and the blanket retention of data. In particular I will highlight the fact that the Home
@grasuth
grasuth / gist:3959a58e91eabaacccff
Last active August 29, 2015 14:03
Angular service to play out a string letter by letter (typewriter-like)
app.factory('playText',
['$timeout',
function($timeout) {
return function(play, onDone) {
var
config = {
'letterMs': 100,
'wordMs': 150 },
baseText = play.content,
timeoutId;
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@grasuth
grasuth / posthookwsgi.py
Created August 2, 2012 18:06
Github wsgi post-receive hook
"""
Github wsgi post-receive hook
"""
import os
import sys
import json
import subprocess
from urlparse import parse_qs
@grasuth
grasuth / simplequeue.py
Created September 12, 2011 16:39
simple kombu send/receive example (1000 messages)
from __future__ import with_statement
from optparse import OptionParser
from kombu import BrokerConnection
def process_args():
parser = OptionParser()
parser.add_option("-l", "--listen", dest="listen",
action="store_true", help="listen and print messages", default=False)
(options, args) = parser.parse_args()
@grasuth
grasuth / PIL_OSX.sh
Created September 12, 2011 13:15
Arch flags for os x virtualenv PIL compile
# bash shell
export ARCHFLAGS='-arch i386 -arch x86_64'
# Python deployment snippet -- useful in bootstrap scripts
# For PIL install
# OS / X latest gcc has no ppc support, so need to prevent ppc compiles
#if os.uname()[0] == 'Darwin':
# os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64'