Skip to content

Instantly share code, notes, and snippets.

{: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"]}]}
@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');
}
}
@jlebensold
jlebensold / .htaccess
Created October 16, 2011 17:31
Zendcasts: SLIMming Out Your Controller
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
@jlebensold
jlebensold / Name.php
Created October 25, 2011 21:02
Zendcasts: Building a JSON Endpoint Part 1
<?php
session_start();
if (!isset($_SESSION['names']))
$_SESSION['names'] = array("jane","jim","john","emily","bill","sara");
class Name
{
public $id;
@jlebensold
jlebensold / home.tpl.php
Created November 7, 2011 21:52
Building a JSON End-Point With SLIM and jQuery: Part 2 – Zendcasts.com
<html>
<head>
<title>Names Hello</title>
<script type="text/javascript" src="/js/jquery-1.5.1.js"></script>
<style>
*
{
margin: 0 0;
padding: 0 0;
@jlebensold
jlebensold / Name.php
Created November 20, 2011 17:04
PUTting Data with jQuery
<?php
session_start();
if (!isset($_SESSION['names']))
$_SESSION['names'] = array("jane","jim","john","emily","bill","sara");
class Name
{
public $id;
@jlebensold
jlebensold / index.ios.js
Created June 15, 2017 19:17
Why do inline styles outperform Stylesheet.create() ?
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
steps = 20000;
### Keybase proof
I hereby claim:
* I am jlebensold on github.
* I am jonlebensold (https://keybase.io/jonlebensold) on keybase.
* I have a public key ASA6FXU5tOFj86Q3up5-PMvKM3yGHdjp54wpJfC8ZzDG9wo
To claim this, I am signing this object:
@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 / Decorator.js
Created September 27, 2017 18:19
Logger Decorator
function logger() {
return function (target, key, descriptor) {
const initialValue = descriptor.value;
descriptor.value = function() {
console.log(`>"${key}" with`, arguments);
return initialValue.apply(null, arguments);
};
return descriptor;
}
}