Skip to content

Instantly share code, notes, and snippets.

View tjlytle's full-sized avatar

Tim Lytle tjlytle

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
<catch event="connection.disconnect.hangup" >
<assign name="duration" expr="recording$.duration" />
<submit next="http://requestb.in/vynl0avy" method="post" namelist="recording duration" enctype="multipart/form-data"/>
<exit />
</catch>
<form>
<record name="recording" dtmfterm="true" maxtime="100s">
<filled>

Keybase proof

I hereby claim:

  • I am tjlytle on github.
  • I am tjlytle (https://keybase.io/tjlytle) on keybase.
  • I have a public key whose fingerprint is 4528 9D2B 44BC AA0F 7CED 015C 90B6 D853 41E8 9EB8

To claim this, I am signing this object:

@tjlytle
tjlytle / reportProblem.php
Last active December 22, 2015 23:09
Fix for PHP oAuthProvider::reportProblem()
<?php
$headers = OAuthProvider::reportProblem($e, false);
if(strpos($headers, 'debug_sbs') !== false){
$parts = explode('&', $headers, 2);
array_walk($parts, function(&$value){
$value = str_replace('&', '%26', $value);
});
$headers = implode('&', $parts);
}
@tjlytle
tjlytle / Mines.txt
Created December 28, 2012 19:27
Sample Test Cases for 12TDDs Day 3 (Mine Field).
*...
..*.
....
*211
12*1
0111
.....
.***.
@tjlytle
tjlytle / gist:3762281
Created September 21, 2012 15:51
The Fake Tim List

Contractor profiles found online that are copied from mine.

Complete Copies

(more than half, if not all the profile)

oDesk

@tjlytle
tjlytle / gist:3244355
Created August 3, 2012 04:26
#DevFriday: King of Code [Aug '12]

The game starts at 3:30PM - if you stumble across this before, good for you, just don't write code until it starts - and entries will be accepted via tweets with the [#devfriday][2] hashtag until the next Developer Friday. In the case that no entries are made before then, [Mark][4] will win by default. To participate you need to have been to at least one [Developer Friday][3].

Goal: Webservice to encrypt/decrypt data using the [Four-square][1] cipher. Any character not matching [a-pr-z] should be removed. For example quick test should be treated as uicktest.

@tjlytle
tjlytle / Script.js
Created July 17, 2012 23:21
on{X} script to check traffic
//check route to work and alret for problems
var checkRoute = function(showSummery){
//TODO: get device location
var wps = [];
// get the traffic on 78
wps[0] = '40.55697, -75.99809';
wps[1] = '40.56785, -75.51876';
// get the traffic feed
console.info('about to call traffic feeds');
feeds.traffic.get(
@tjlytle
tjlytle / gist:2710216
Created May 16, 2012 13:08
Deadline for PHP Contest
<?php
$tek = new DateTime('11:59 PM May 22 2012', new DateTimeZone('America/Chicago'));
$deadline = clone $tek;
$deadline->setTime(23, 59);
$deadline->add(new DateInterval('P8D'));
echo $deadline->format('r');
@tjlytle
tjlytle / CloudMine.php
Created January 8, 2012 05:00
API Wrapper for CloudMine that can be used as a Zend_Auth Adapter
<?php
class CloudMine implements Zend_Auth_Adapter_Interface
{
const API_BASE = 'https://api.cloudmine.me/v1/app/';
const FORMAT_JSON = 'json';
const FORMAT_BINARY = 'binary';
const FORMAT_EMPTY = null;
/**
* HTTP Client
@tjlytle
tjlytle / gist:1293424
Created October 17, 2011 18:44
SendGrid Configuration for Zend Framework
<?php
$config = array(
'username' => 'sendgridusername',
'password' => 'sendgridpassword',
'auth' => 'plain'
);
$transport = new Zend_Mail_Transport_Smtp('smtp.sendgrid.net', $config);
$mail = new Zend_Mail();