Skip to content

Instantly share code, notes, and snippets.

@thanosp
thanosp / skelie-layout.php
Created February 12, 2012 21:43
skelie layout
<?php echo $this->partial('header'); ?>
<body <?php body_class('layout-'.$this->layout); ?>>
<header class="container_16 clearfix" role="banner">
<div class="grid_3"><h1 class="ir siteTitle"><a href="/"><?php echo bloginfo('name'); ?></a></h1>
</div>
<div class="grid_9">
<?php echo $this->partial('menu', 'utility'); ?>
</div>
@thanosp
thanosp / gist:1719252
Created February 1, 2012 20:54
WP Theme Asset Versioning
<?php
/**
* Plugin Name: Theme Asset Versioning
*/
/**
* Returns a versioned file name based on the last modified file date
*
* @param string $fileUrl Pointing to the file as would have been from the html
* @return string a versioned filename
@thanosp
thanosp / .bashrc
Created January 19, 2012 16:51
WTF (Where the fuck)
#Where the fuck?
wtf()
{
if [ -z "$1" ]; then
echo -e 'Usage: wtf [regex] ([path])'
else
if [ -z "$2" ]; then
baseDir="."
else
baseDir="$2"