Skip to content

Instantly share code, notes, and snippets.

@ashleydw
ashleydw / Cascading.php
Created October 31, 2011 13:53
Cascading module directory file structure for Zend Framework
<?php
/**
* Cascading module directory file structure
*
* @version 1
* @author Ashley White, www.needathinkle.com
* @license @license http://creativecommons.org/licenses/by-sa/3.0/
*/
@ashleydw
ashleydw / PostProcess.php
Created October 18, 2011 09:04
Zend Framework Controller Plugin to allow post output processing
<?php
/**
* Zend Framework Controller Plugin to allow post output processing
*
* @version 1
* @author Ashley White, http://www.needathinkle.com/
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/
final class Thinkle_Controller_Plugin_PostProcess extends Zend_Controller_Plugin_Abstract {
@ashleydw
ashleydw / MailChimp_AddEntries
Created July 13, 2011 12:25
Add entries from a tab separated list to MailChimp
<?php
/**
* @version 1
* @author Ashley White, http://www.needathinkle.com/
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/
require 'mailchimp/MCAPI.class.php';
include 'krumo/class.krumo.php';
@ashleydw
ashleydw / Thinkle_Service_SongKick_Venue
Created July 6, 2011 10:49
Scrape SongKick venue page for events with Zend Framework
<?php
/**
* @version 1
* @author Ashley White, http://www.needathinkle.com/
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/
final class Thinkle_Service_SongKick_Venue {
const VENUE_URI = 'http://www.songkick.com/venues/%d/calendar';
@ashleydw
ashleydw / Thinkle_Cron
Created June 11, 2011 21:44
Uploading backup archives via CLI to Google Docs
<?php
/**
* A simple cron to get the newest .tar.gz file from a backup folder and upload to Google Docs.
*
* @version 1
* @author Ashley White, http://www.needathinkle.com/
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/