Skip to content

Instantly share code, notes, and snippets.

View capncodewash's full-sized avatar

Graeme West capncodewash

  • Glasgow
View GitHub Profile
/*
* CPBundle.j
* AppKit
*
* Created by Nicholas Small, extended by John C. Fox
* Copyright 2009, 280 North, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
/*
* CPBundle.sj
* AppKit
*
* Created by Nicholas Small.
* Copyright 2009, 280 North, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
@capncodewash
capncodewash / android-developer-role-description.txt
Created June 7, 2011 19:45
Job opportunity: Junior Android Developer + Mobile Guru
Junior Android Developer + Mobile Guru
Spot Specific Limited
Job description
Spot Specific is currently seeking a candidate with a strong background in Java software development and design to join our development team, to cross-train to become an awesome Android developer.
The successful candidate will contribute to improving and maintaining our advanced application runtime engine for the Android platform. The candidate will work with our CTO, development team and Community Manager to help shape the future development of the product, implement exciting new features, ensure device compatibility, and be responsible for maintenance.
@capncodewash
capncodewash / countdown.rb
Created May 10, 2012 23:45
Countdown: an attempt at creating a 'Countdown'
# Countdown.rb
#
# A lame attempt by someone who last used Ruby in the Paleolithic period (I think Perl was around then) to solve the Countdown problem ( http://rubyquiz.com/quiz7.html ). Bad habits from Python, PHP and various things are included.
#
# Attempted as a follow-up to the ScotRUG user group meeting coding kata.
#
# Will generate solutions for any combination of six integers.
#
# ©2012 Graeme West <graeme@heliocentrik.net>
# Licensed under the Apache 2.0 licence ( http://www.apache.org/licenses/LICENSE-2.0 ). If you're into that kind of thing.
@capncodewash
capncodewash / assembly-split.xsl
Last active December 18, 2015 10:59
A simple XSLT 2.0 stylesheet which allows you to split a DocBook 5.1 assembly file containing multiple <structure> elements into distinct files for further processing. The end result is a set of files named after the IDs of each <structure> element. Each file contains: * The entire <resources> structure from the original file * A single <structu…
<?xml version="1.0" encoding="UTF-8"?>
<!--
assembly-split.xsl
== README ==
A simple XSLT 2.0 stylesheet which allows you to split a DocBook 5.1 assembly file containing multiple <structure> elements into distinct files for further processing.
The end result is a set of files named after the IDs of each <structure> element. Each file contains:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version='1.0'>
<xsl:import href="urn:docbkx:stylesheet"/>
<!-- ProgramListing/Screen has a background color -->
<xsl:param name="shade.verbatim">1</xsl:param>
<xsl:attribute-set name="shade.verbatim.style">