[ create a new paste ] login | about

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

Recent Pastes:

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)
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 (12 lines, 4 lines of output)
fede - PHP, pasted on May 29:
1
2
3
4
5
<?php
class Zend_Controller_Dispatcher_Abstract
{
    /**
     * Retrieve front controller instance
...
view (31 lines)
fede - PHP, pasted on May 18:
1
2
3
4
5
<?php
class Project_Model_UserProfile_Repository extends Zf_Domain_Repository
{
    /* @var Project_Dao_Db_UserProfile */
    private $userProfileDao;
...
view (42 lines)
PHP, pasted on Mar 19:
1
2
3
4
5
<?php
class ClassOne 
{
	public function callClassOne() {
		print "In Class One\n";
...
view (45 lines, 15 lines of output)
PHP, pasted on Mar 19:
1
2
3
4
5
<?php
class ClassOne 
{
	public function callClassOne() {
		print "In Class One\n";
...
view (44 lines, 9 lines of output)
PHP, pasted on Mar 19:
1
2
3
4
5
<?php
class ClassOne 
{
	public function callClassOne() {
		print "In Class One\n";
...
view (44 lines, 9 lines of output)