Skip to content

Instantly share code, notes, and snippets.

@jlebensold
jlebensold / Dates.php
Created October 10, 2011 22:31
Zendcasts: PHAR out autoloading
<?php
namespace Zendcasts;
class Dates {
public static function next_week()
{
$datetime = new \DateTime();
$datetime->add(new \DateInterval('P7D'));
return $datetime->format('Y-m-d');
}
}
@jlebensold
jlebensold / Zendcasts-Dates.php
Created October 2, 2011 19:44
Zendcasts: Fun with PHAR
<?php
namespace Zendcasts;
class Dates {
public static function next_week()
{
$datetime = new \DateTime();
$datetime->add(new \DateInterval('P7D'));
return $datetime->format('Y-m-d');
}
}
{:input=>"s3://jettytstcontent/files/development/14/39/original.mov", :outputs=>[{:label=>"iphone", :url=>"s3://jettytstcontent/files/development/14/39/iphone.mp4", :width=>480, :height=>320, :public=>1}, {:label=>"ipad", :url=>"s3://jettytstcontent/files/development/14/39/ipad.mp4", :width=>960, :height=>640, :public=>1}, {:label=>"ogv", :url=>"s3://jettytstcontent/files/development/14/39/desktop.ogv", :public=>1}, {:thumbnails=>{:number=>1, :base_url=>"s3://jettytstcontent/files/development/14/39/t", :public=>1}}, {:notifications=>["http://localhost:3000//zencoder?id=39"]}]}