Skip to content

Instantly share code, notes, and snippets.

View Mezzle's full-sized avatar

Martin Meredith Mezzle

View GitHub Profile
<html>
<head>
<link rel="stylesheet" href="http://nerdcubedservers.co.uk/wp-content/themes/parabola/style.css" />
<style>
#title {
color: white;
margin: 10px auto;
font-size: 60px;
display: block;
width: 25%;
$.get(
'/location/post-code-lookup'.
{'postcode': submittedPostcode},
function (data) {
}
);
<?php
class Route
{
protected $first_stop;
protected $last_stop;
// Assume getters and setters
# php5-fpm - The PHP FastCGI Process Manager
description "The PHP FastCGI Process Manager"
author "Ondřej Surý <ondrej@debian.org>"
start on runlevel [2345]
stop on runlevel [016]
# you can uncomment this with recent upstart
# reload signal USR2
// ==UserScript==
// @name Seed From toolbox
// @namespace http://esl.eu/
// @version 0.2.9
// @description Create button that will seed from toolbox
// @match http://www.esl.eu/eu/*/admin_contestants*
// @copyright 2014+, Martin Meredith
// ==/UserScript==
var cup_url;
public function tearDown()
{
$this->addToAssertionCount(M::getContainer()->mockery_getExpectationCount());
M::close();
}
@Mezzle
Mezzle / README.md
Created April 3, 2014 10:11
Test Case for Mockery

This is a test case for a potential bug with Mockery

@Mezzle
Mezzle / acceptnewgachanges.user.js
Last active May 31, 2016 09:56
ESL Userscripts
// ==UserScript==
// @name Auto-Accept New GA Changes
// @namespace http://esl.eu/
// @version 0.1
// @description enter something useful
// @match http://www.esl.eu/*/admin_ga_changes/view/*
// @copyright 2013+, Martin Meredith
// ==/UserScript==
if (jQuery(jQuery(jQuery('#main_content table')[1]).find('tr')[3]).find('td')[1].innerHTML == '<em>none</em>') {
@Mezzle
Mezzle / userscript.js
Last active May 31, 2016 09:56
Show Leagues against SC2 Leaguejoins
// ==UserScript==
// @name Show Leagues
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Show Leagues against SC2 LJs
// @match http://www.esl.eu/eu/sc2/*/admin_leaguejoins*
// @copyright 2013, Martin "Mez" Meredith
// ==/UserScript==
jQuery('a.TextVSblack').each(function() {
<?php
namespace ProtecTest\Employment;
use \ProtecInnovations\Recruiter;
use \PHPUnit_Framework_TestCase as TestCase;
class RecruiterTest extends TestCase
{
protected $object = null;