Skip to content

Instantly share code, notes, and snippets.

View SuborbitalPigeon's full-sized avatar

Bruce Cowan SuborbitalPigeon

View GitHub Profile
[
{
"id" : "stage",
"type" : "ClutterStage",
"width" : 800,
"height" : 600,
"color" : "black",
"children" : [ "rectangle" ],
"signals" :
[
@SuborbitalPigeon
SuborbitalPigeon / postcode.js
Last active November 12, 2016 16:44
Postcode validation using GJS or PyGObject
#!/usr/bin/gjs
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
var re = /[A-Z]{1,2}[\d][A-Z0-9]? ?[\d][A-Z]{2}/
const Postcode = new Lang.Class(
{
Name: 'Postcode',
@SuborbitalPigeon
SuborbitalPigeon / unity-coders.svg
Created April 17, 2012 01:19
Unity Coders icon
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.