This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::import('Helper', 'Cache'); | |
class JigoCacheHelper extends CacheHelper { | |
public function __construct() { | |
$view = ClassRegistry::getObject('view'); | |
$view->Cache = $this; | |
$view->loaded['cache'] = $this; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# Copyright (c) 2011 Cake Development Corporation (http://cakedc.com) | |
# | |
# Ubuntu 11.04 based web server installation script | |
# Run this by executing the following from a fresh install of Ubuntu 11.04 server: | |
# | |
# bash -c "$(curl -fsSL https://raw.github.com/gist/1264701)" <mysqlPassword> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
## Commit configuration files. | |
## | |
if [ ! -d /etc/.git ]; then | |
cd /etc | |
git init | |
git config user.name "Server Administrator" | |
git config user.email "root@localhost" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
from datetime import datetime | |
from sys import exit | |
from fabric.api import env, run, local, task, settings, sudo | |
import re | |
env.hosts = ['[email protected]'] | |
environments = { | |
'__base__': { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AppModel extends Model { | |
/** | |
* Overridden setSource allows creation of table in the event a MissingTableException is raised. | |
* | |
* @param string $tablename Table name | |
* @return void | |
*/ | |
public function setSource($tablename) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
[color "diff"] | |
meta = yellow | |
frag = magenta bold |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `categories`; | |
CREATE TABLE `categories` ( | |
`id` char(36) NOT NULL, | |
`name` varchar(100) NOT NULL, | |
`description` text NOT NULL, | |
`created` datetime NOT NULL, | |
`modified` datetime NOT NULL, | |
PRIMARY KEY (`id`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Github Details | |
$github_org = 'predominant'; | |
$github_repo = 'TwigView'; | |
$github_user = 'user'; | |
$github_password = 'pass'; | |
// Get from Github | |
$issues_url = "https://api.github.com/repos/$github_org/$github_repo/issues?state=open"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[12:59am] PhpNut: So you are basically competing against the CSF to offer training? | |
[01:00am] PhpNut: thanks Graham... | |
[01:00am] Predominant: No, training for the company to make the devels here more experienced | |
[01:00am] PhpNut: The fact that you are working with another company doing cakephp development is even agiainst the agreement you had with cakedc | |
[01:00am] Predominant: information sharing in the group | |
[01:01am] PhpNut: why would they ask that? | |
[01:01am] Predominant: I am not doing CakePHP development, I am building a PaaS solution | |
[01:01am] PhpNut: I could care less if it is something interally for the company | |
[01:01am] Predominant: Like EngineYard / Orchestra / PHPFog | |
[01:01am] PhpNut: the more people that use it the better |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Input.GetKeyDown(this.KeyRight) || Input.GetKeyUp(this.KeyLeft)) | |
{ | |
this.Turning++; | |
} | |
if (Input.GetKeyUp(this.KeyRight) || Input.GetKeyDown(this.KeyLeft)) | |
{ | |
this.Turning--; | |
} | |
if (this.Turning != 0) |