Skip to content

Instantly share code, notes, and snippets.

@jlebensold
jlebensold / Dates.php
Created Oct 10, 2011
Zendcasts: PHAR out autoloading
View Dates.php
<?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 Oct 2, 2011
Zendcasts: Fun with PHAR
View Zendcasts-Dates.php
<?php
namespace Zendcasts;
class Dates {
public static function next_week()
{
$datetime = new \DateTime();
$datetime->add(new \DateInterval('P7D'));
return $datetime->format('Y-m-d');
}
}
View gist:1099585
{: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"]}]}