Skip to content

Instantly share code, notes, and snippets.

@jjok
jjok / Podcasts.opml
Last active March 20, 2024 01:00
Podcasts
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Podcasts</title>
</head>
<body>
<outline title="24cast"
text="24cast"
type="rss"
@jjok
jjok / reading_list.md
Last active March 18, 2019 12:15
Reading List

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

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)
@jjok
jjok / svn-cheatsheet.md
Created May 17, 2013 14:33
SVN cheatsheet.

SVN Cheatsheet

Diff

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

Reverse commit

@jjok
jjok / PostcodeRegexImporter.php
Created March 14, 2013 11:26
Process regular expressions for postcode validation from Unicode Common Locale Data Repository.
<?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 December 14, 2015 00:09
PHP Localhost homepage.
<?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 December 10, 2015 15:18
Test a socket connection.
<?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 October 13, 2015 05:57
First attempt at Conway's Game of Life in CoffeeScript.
<!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 April 21, 2016 12:13
Reformat episode number for EPG XML.
<?php
try {
if(isset($_SERVER['argv'][1])) {
$xml_file = $_SERVER['argv'][1];
}
else {
$xml_file = 'TVGuide.xml';
}