Skip to content

Instantly share code, notes, and snippets.

View MattForshaw's full-sized avatar
🏠
Working from home

Matt Forshaw MattForshaw

🏠
Working from home
View GitHub Profile
@MattForshaw
MattForshaw / pair_programming_roles
Created November 14, 2017 09:13 — forked from jordanpoulton/pair_programming_roles
Pair Programming Role Definitions - Driver:Navigator
Driver:
-Write the code according to the navigator's specification
-Listen intently to the navigators instructions
-Ask questions wherever there is a lack of clarity
-Offer alternative solutions if you disagree with the navigator
-Where there is disagreement, defer to the navigator. If their idea fails, get to failure quickly and move on
-Make sure code is clean
-Own the computer / keyboard
-Ignore larger issues and focus on the task at hand
-Trust the navigator - ultimately the navigator has the final say in what is written
@MattForshaw
MattForshaw / memusg
Last active August 7, 2016 20:00 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
#
# Author: Matt Forshaw <matthew.forshaw@ncl.ac.uk>
# Updated: 2016-08-07
# Notes: Script extended to provide per-sample terminal output (Line 59).
@MattForshaw
MattForshaw / swc-vm.pp
Last active August 29, 2015 14:18 — forked from jiffyclub/swc-vm.pp
package { "dkms":
ensure => latest,
}
package { "chromium-browser":
ensure => latest,
}
package { "emacs":
ensure => latest,
@MattForshaw
MattForshaw / TemperatureEventHandler.java
Created April 2, 2015 14:18
Example of adding an additional subscriber to esper-demo-nuclear
package com.cor.cep.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

Keybase proof

I hereby claim:

  • I am mattforshaw on github.
  • I am mattforshaw (https://keybase.io/mattforshaw) on keybase.
  • I have a public key whose fingerprint is 4559 3FDE 177C 68D3 DF2E 0D95 7D47 DC21 D159 8103

To claim this, I am signing this object:

javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push,%20.wiki-actions,%20%23last-edit,%20.actions,%20.header').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D);%20$('link').removeAttr('media');%7D);
Agular form...
<select name="customer" ng-model="newBooking.customer" ng-options="customer as customer.name for customer in customers"></select>
controllers.js...
function BookingsCtrl($scope, $http, $timeout, Bookings, Flights, Customers) {
// Define a refresh function, that updates the data from the REST service
$scope.refresh = function() {