Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Jefferies jjok

View GitHub Profile
View Podcasts.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Podcasts</title>
</head>
<body>
<!--<outline title="That Podcast"
text="That Podcast"
type="rss"
version="RSS"
@jjok
jjok / reading_list.md
Last active Mar 18, 2019
Reading List
View reading_list.md

Reading List

  • Apprenticeship Patterns - Dave Hoover, Adewale Oshineye finished 06-09-2016
  • Going Pro - Cal Evans finished 16-12-2016
  • React: Up & Running - Stoyan Stefanov finished 03-01-2017
  • Object-oriented Reengineering Patterns - Oscar Nierstrasz, Stéphane Ducasse, Serge Demeyer finished 03-01-2017
  • Common LISP: A Gentle Introduction to Symbolic Computation - David S. Touretzky finished 14-09-2017
  • Building Progressive Web Apps - Tal Ater finished 21-12-2017
  • Domain-driven Design: Tackling Complexity in the Heart of Software - Eric Evans finished 31-12-2017
View favourite-records.md

Favourite Records

My All-time Favourite LPs

  • Colossal - Welcome the Problems (Asian Man Records)
  • Descendents - Everything Sucks (Epitaph Records)
  • Lemuria - Get Better (Asian Man Records)
  • Limbeck - Hi, Everything's Great (Doghouse Records)
View svn-cheatsheet.md

SVN Cheatsheet

Diff

svn diff --old <URL> --new <URL>

Reverse commit

@jjok
jjok / PostcodeRegexImporter.php
Created Mar 14, 2013
Process regular expressions for postcode validation from Unicode Common Locale Data Repository.
View PostcodeRegexImporter.php
<?php
namespace SuperGroup\PostcodeRegexImporter;
use Closure;
use DOMDocument;
/**
* Processes regular expressions for postcodes from CLDR (Unicode Common
* Locale Data Repository) XML file.
@jjok
jjok / index.php
Last active Dec 14, 2015
PHP Localhost homepage.
View index.php
<?php
/**
* Copyright (c) 2013 Jonathan Jefferies
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
@jjok
jjok / socket-test.php
Last active Dec 10, 2015
Test a socket connection.
View socket-test.php
<?php
/**
* Socket test.
* <code>php socket-test.php <server> <port></code>
* <code>php socket-test.php example.com 25</code>
* @author Jonathan Jefferies
*/
try {
@jjok
jjok / game-of-life.html
Last active Oct 13, 2015
First attempt at Conway's Game of Life in CoffeeScript.
View game-of-life.html
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8" />
<title>Conway's Game of Life - CoffeeScript</title>
<style>
body { margin:0; padding:0; background:#EEE; }
canvas { background:#FFF; }
#stats { position:absolute; top:1%; left:0.5%; border:1px dashed #CCC; padding:1em; background: rgba(255, 255, 255, 0.8); }
</style>
@jjok
jjok / epg_processor.php
Last active Apr 21, 2016
Reformat episode number for EPG XML.
View epg_processor.php
<?php
try {
if(isset($_SERVER['argv'][1])) {
$xml_file = $_SERVER['argv'][1];
}
else {
$xml_file = 'TVGuide.xml';
}