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:
I hereby claim:
To claim this, I am signing this object:
<?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> |
<vxml version = "2.1" > | |
<form> | |
<field name="department"> | |
<prompt>Please say sale or support. </prompt> | |
<grammar mode="voice" root="top"> | |
<rule id="top"> | |
<one-of> | |
<item>sales</item> | |
<item>support</item> | |
</one-of> |
<?php | |
use Zend\ServiceManager\AbstractFactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
class ClientFactory implements AbstractFactoryInterface | |
{ | |
protected $services = [ | |
'Nexmo\Sms', | |
'Nexmo\Voice', | |
'Nexmo\Developer', |
<?php | |
$ch = curl_init("http://api.drop.io/drops"); | |
curl_setopt($ch, CURLOPT_POST, true); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, array('version' => '2.0', 'api_key' => 'API_KEY')); | |
$return = curl_exec($ch); | |
$xml = new SimpleXMLElement($return); | |
?> | |
<Response> |
<?php | |
$to = LIST_ADDRESS; | |
$from = SENDER; | |
$rss = 'http://chileoutreach.posterous.com/rss.xml'; | |
$client = new Zend_Http_Client($rss); | |
$response = $client->request(); | |
if(($status = $response->getStatus()) !== 200){ |
#!/bin/bash | |
#I am not a bash scripter, this is my feeble attempt to create | |
#a drop.io cli uploader by cobbling together various ideas found | |
#on the internet. Perhaps someone will see this and say, "Silly | |
#bash script n00b, I'll show you how it's done." | |
# | |
#That's fine by me. | |
drop() |
<?php | |
require_once 'Zend/Controller/Action/Helper/Abstract.php'; | |
require_once 'Zend/Controller/Action/HelperBroker.php'; | |
require_once 'Zend/Session/Namespace.php'; | |
/** | |
* This helper tracks the user's browsing history | |
* | |
* @copyright 2008 Jani Hartikainen <www.codeutopia.net> | |
* @author Jani Hartikainen <firstname at codeutopia net> |
#!/usr/bin/env python | |
import string, re | |
from calibre.web.feeds.news import BasicNewsRecipe | |
from calibre.ebooks.BeautifulSoup import Tag, NavigableString | |
class Doctrine2(BasicNewsRecipe): | |
title = 'Doctrine2' |
<?php | |
function getUser($name){ | |
$user = simplexml_load_file('http://twitter.com/users/show.xml?screen_name='.$name); | |
return $user; | |
} | |
$user = getUser('tjlytle'); | |
echo $user->followers_count; | |
echo $user->status->text; |