[ create a new paste ] login | about

tml

Name: Joey Smith
Email:
Site/Blog:
Location:
Default language: PHP
Favorite languages:
About:

Saved pastes by tml:

PHP, pasted on Jan 5:
1
2
3
4
5
<?php
session_start();

    function login(){
        $_SESSION['http_digest_nonce'] = uniqid();
...
view (59 lines)
PHP, pasted on Dec 31:
1
2
3
4
5
<?php

$xml = <<<XML
<?xml version="1.0"?>
<us:ItemMaster xmlns:us="foo" xmlns:oa="bar">
...
view (100 lines, 6 lines of output)
Python, pasted on Nov 1:
1
2
3
4
try:
    from pylons import c
except ImportError:
    from pylons import tmpl_context as c
...
view (10 lines)
PHP, pasted on Jun 1:
1
2
3
4
5
<?php # parse dl/dt/dd into an array

$xml = <<<XML
<dl>
<dt>Cascading Style Sheets</dt>
...
view (40 lines, 12 lines of output)
PHP, pasted on Jun 1:
1
2
3
4
5
<?php # sort callback, push NULLs to end

function sorter($a, $b) {
    if ($a === NULL) {
        if ($b === NULL) return 0;
...
view (19 lines, 24 lines of output)
PHP, pasted on Jun 1:
1
2
3
4
5
<?php # Create a new RSS item, iteratively replaceChild to make it the firstChild
$xml =<<< XML
<?xml version="1.0"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" >
<channel>
...
view (43 lines, 15 lines of output)
PHP, pasted on Jun 1:
1
2
3
4
<?php # Base Iterator+ArrayAccess implementation
class myIt implements Iterator, ArrayAccess {
    private $position=0;
    protected $data =  array();
...
view (37 lines, 5 lines of output)