Skip to content

Instantly share code, notes, and snippets.

View gumacahin's full-sized avatar

Marco Enrico gumacahin

  • Philippines
View GitHub Profile
@gumacahin
gumacahin / manifest
Created July 15, 2012 01:28
application/modules/Car/settings/manifest.php
<?php return array (
'package' =>
array (
'type' => 'module',
'name' => 'car',
'version' => '4.0.0',
'path' => 'application/modules/Car',
'title' => 'Car',
'description' => 'Car',
'author' => 'http://social-engine-tutorials.blogspot.com/',
@gumacahin
gumacahin / api core
Created July 15, 2012 01:33
application/modules/Car/Api/Core.php
<?php
class Car_Api_Core extends Core_Api_Abstract
{
}
@gumacahin
gumacahin / car model
Created July 15, 2012 01:35
application/modules/Car/Model/Car.php
<?php
class Car_Model_Car extends Core_Model_Item_Abstract
{
}
@gumacahin
gumacahin / table cars
Created July 15, 2012 01:36
application/modules/Car/Model/DbTable/Cars.php
<?php
// Cars/Model/DbTable/Cars.php
class Car_Model_DbTable_Cars extends Engine_Db_Table
{
protected $_rowClass = 'Car_Model_Car';
}
@gumacahin
gumacahin / my.sql
Created July 15, 2012 01:37
application/modules/Car/settings/my.sql
-- Cars/settings/my.sql
DROP TABLE IF EXISTS engine4_car_cars;
CREATE TABLE engine4_car_cars (
car_id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
title VARCHAR(128) NOT NULL,
description MEDIUMTEXT NOT NULL,
owner_id INT(11) UNSIGNED NOT NULL,
owner_type INT(11) UNSIGNED NOT NULL,
photo_id INT(11) UNSIGNED NOT NULL,
@gumacahin
gumacahin / gist:3118992
Created July 15, 2012 22:50
interfaces
public function comments()
{
return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('comments', 'core'));
}
public function likes()
{
return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('likes', 'core'));
}
@gumacahin
gumacahin / manifest
Created July 24, 2012 10:24
application/modules/Car/settings/manifest.php
<?php return array (
'package' =>
array (
'type' => 'module',
'name' => 'car',
'version' => '4.0.0',
'path' => 'application/modules/Car',
'title' => 'Car',
'description' => 'Car',
'author' => 'http://social-engine-tutorials.blogspot.com/',
<?php
// car controller
class Car_CarController extends Core_Controller_Action_Standard
{
public function init()
{
}
public function editAction()
@gumacahin
gumacahin / gist:7705414
Created November 29, 2013 13:02
System information.
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3901 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
Running Steam on ubuntu 12.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[0619/212001:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
Installing breakpad exception handler for appid(steam)/version(1401381906_client)
[HTTP Remote Control] HTTP server listening on port 38702.
Installing breakpad exception handler for appid(steam)/version(1401381906_client)