Skip to content

Instantly share code, notes, and snippets.

View twright's full-sized avatar

Thomas Wright twright

View GitHub Profile
@twright
twright / script.js
Created October 3, 2012 15:52 — forked from radiancelux/gist:3815701
Build-a-Board Preview
<style>
div.innerpreview
{
height: 350px;
width: 350px;
position: float;
background-color:white;
border: 1px solid #E3E3E3;
border-radius: 5px 5px 5px 5px;
/* Rotate div */
@twright
twright / zfish.filter.php
Created September 25, 2012 22:35 — forked from eleclerc/zfish.filter.php
ZendFramework-ish filter for PHP_Beautifier
<?php
/**
* A ZendFramework-ish filter for PHP_Beautifier
*
* This file have to go in:
* /path/to/pear/php/Beautifier/Filter/
*
* Use it in conjunction with Pear() and NewLines() filters:
* php_beautifier --input "/path/to/your-file.php" --filter="Pear() zfish() NewLines(after=T_DOC_COMMENT)"
*
@twright
twright / autodate.pl
Created October 25, 2011 20:31 — forked from Browne/autodate.pl
Open source perl auto-updater for <lastmod> in XML sitemaps.
#!/usr/bin/perl
#######################################################################
#Basic perl script to update <lastmod> in an XML sitemap. #
#Works by seaching for .html files nested in <loc> and then comparing #
#to the file. It then inserts the date in the <lastmod> tag. #
# #
#This code is not subject to copyright and is free to use #
# #
#Eliot Brown 25/10/2011 #