|
codepad
|
|
|
|
|
Recent Pastes:
<?php
class Project_Entity_Address extends Zf_Domain_Entity
{
public $id;
public $userId;
|
| view (47 lines) |
<?php
class Project_Entity_Address extends Zf_Domain_Entity
{
public $id;
public $userId;
|
| view (47 lines, 2 lines of output) |
Zend_Rest_Client dependencies
-----------------------------
require_once 'Zend/Service/Abstract.php';
require_once 'Zend/Rest/Client/Result.php';
|
| view (16 lines) |
try {
$frontController = Zend_Controller_Front::getInstance();
if (@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) {
ob_start();
$frontController->dispatch();
|
| view (19 lines) |
/*
When using Zend_Session_SaveHandler_DbTable, it's important to
create a connection to the database after creating
an instance of the adapter class. Otherwise, if there's a problem with the
connection, you get a Fatal error: Exception thrown without a stack frame
|
| view (33 lines) |
<?php
class DateIntervalFormat
{
/**
* Format an interval value with the requested granularity.
|
| view (42 lines, 1 line of output) |
'''
Find out who are you following that's not following you back
http://blog.davidziegler.net/
Dependencies python-twitter >= 0.6
'''
|
| view (19 lines) |
from __future__ import division
import math
longitude = float(-2.708077)
latitude = float(53.754842)
|
| view (14 lines, 2 lines of output) |
import csv
# Batch Processing CSV Files
for Agents in range(1,2):
for UAVs in range(1,6):
|
| view (17 lines, 5 lines of output) |
import os, sys
def pyc_clean(dir):
findcmd = 'find %s -name "*.pyc" -print' % dir
count = 0
for f in os.popen(findcmd).readlines():
|
| view (11 lines, 1 line of output) |
import os, sys
def pyc_clean(dir):
findcmd = 'find %s -name "*.pyc" -print' % dir
count = 0
for f in os.popen(findcmd).readlines():
|
| view (12 lines, 4 lines of output) |
<?php
class Zend_Controller_Dispatcher_Abstract
{
/**
* Retrieve front controller instance
|
| view (31 lines) |
<?php
class Project_Model_UserProfile_Repository extends Zf_Domain_Repository
{
/* @var Project_Dao_Db_UserProfile */
private $userProfileDao;
|
| view (42 lines) |