[ create a new paste ] login | about

Project: fedecarg
http://blog.fedecarg.com/
Language:
Description:
None

Recent Pastes:

fedecarg - PHP, pasted on Mar 10:
1
2
3
4
5
<?php

/*** Doctrine **********************/

class Doctrine_ORM_EntityRepository 
...
view (48 lines, 30 lines of output)
fede - PHP, pasted on Mar 7:
1
2
3
4
5
Zf_Orm
----------------

$manager = Zf_Orm_Manager::getInstance();           // instance of Zf_Orm_Manager
$bookRepository = $manager->getRepository('Book');  // instance of Zf_Orm_Repository
...
view (12 lines)
PHP, pasted on Mar 2:
1
2
3
4
<?php
class Book {
    private $id;
    private $title;
...
view (17 lines, 20 lines of output)
PHP, pasted on Mar 2:
1
2
3
4
<?php
class Book {
    private $id;
    private $title;
...
view (17 lines, 14 lines of output)
fede - PHP, pasted on Mar 2:
1
2
3
4
<?php
class Book {
    private $id;
    private $title;
...
view (17 lines, 20 lines of output)
fede - Plain Text, pasted on Mar 2:
1
2
3
4
5
<?php
class Book {
    private $id;
    private $title;

...
view (17 lines)
fede - Plain Text, pasted on Jan 1:
1
2
3
4
5
Domain class
---------------------

File: /application/domain/Book.php

...
view (90 lines, 2 comments)
fede - Plain Text, pasted on Jan 1:
1
2
3
4
5
GORM (Groovy)
------------

class Book {
   static belongsTo = Author
...
view (58 lines, 1 comment)
fedecarg - PHP, pasted on Nov 27:
1
2
3
4
5
<?php
class Project_Entity_Address extends Zf_Domain_Entity
{
    public $id;
    public $userId;
...
view (47 lines)
fedecarg - PHP, pasted on Nov 27:
1
2
3
4
5
<?php
class Project_Entity_Address extends Zf_Domain_Entity
{
    public $id;
    public $userId;
...
view (47 lines, 2 lines of output)
fedecarg - PHP, pasted on Aug 21:
1
2
3
4
5
Zend_Rest_Client dependencies
-----------------------------

require_once 'Zend/Service/Abstract.php';
require_once 'Zend/Rest/Client/Result.php';
...
view (16 lines)
fedecarg - Plain Text, pasted on Jul 6:
1
2
3
4
5
try {   
    $frontController = Zend_Controller_Front::getInstance();
    if (@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) {
        ob_start();
        $frontController->dispatch();
...
view (19 lines)
fedecarg - Plain Text, pasted on Jul 1:
1
2
3
4
5
/*
  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)
fedecarg - PHP, pasted on Jun 29:
1
2
3
4
5
<?php
class DateIntervalFormat
{
    /**
     * Format an interval value with the requested granularity.
...
view (42 lines, 1 line of output)
fedecarg - Python, pasted on Jun 14:
1
2
3
4
5
'''
Find out who are you following that's not following you back
http://blog.davidziegler.net/
Dependencies python-twitter >= 0.6
'''
...
view (19 lines)
fedecarg - Python, pasted on Jun 11:
1
2
3
4
import mimetypes
import os.path
import sys
import S3 # Get this from Amazon
...
view (25 lines)
fedecarg - Python, pasted on Jun 10:
1
2
3
4
5
from __future__ import division
import math

longitude = float(-2.708077)
latitude = float(53.754842)
...
view (14 lines, 2 lines of output)
fedecarg - Python, pasted on Jun 10:
1
2
3
4
5
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)
fedecarg - Python, pasted on Jun 10:
1
2
3
4
5
import os, sys 

findcmd = 'grep -R "cherrpy.request" .'

print "Searching...:"
...
view (8 lines, 1 line of output)
fedecarg - Python, pasted on Jun 10:
1
2
3
4
5
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)