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
# User specific aliases and functions | |
# Coloured prompt so you can find it in the wall of output | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[02;33m\]\u@\h\[\033[01;31m\] | |
\w \$\[\033[00m\] ' | |
# guess | |
alias ll='ls -alh' |
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
[alias] | |
addr = add -A . | |
ci = commit | |
co = checkout | |
ff = merge --ff-only | |
lg = log --graph --decorate --branches --oneline --remotes --tags --all -20 | |
lga = log --graph --decorate --branches --oneline --remotes --tags --all | |
st = status | |
[color] |
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 | |
// Controller | |
$customers = array( | |
'alan', | |
'luke' | |
); | |
// Imagine $orders may be undefined, null or false. |
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 | |
$var = array(); | |
if (!empty($var)) { | |
// This is wrong? | |
} | |
if ($var) { | |
// This is 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
<?php | |
class Controller_Error extends Controller_Template | |
{ | |
public function action_404() | |
{ | |
// XXX: https://github.com/fuel/core/issues/515 | |
// I assume the line below only works when using PHP as an Apache Module as the 404 header is different for FastCGI. | |
//$this->response->status = 404; |
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
git add . | |
git ls-files --deleted | xargs git rm |
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 | |
namespace Fuel\Migrations; | |
class Create_Users | |
{ | |
protected static $users_table; | |
public function __construct() | |
{ |
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 UK Conference 2012 | |
https://joind.in/event/view/824 | |
Great Talks | |
Well Organised | |
Kept me watered | |
Great Food | |
Free Beer | |
I didn't catch a PHP Elephant plushie :( | |
I didn't win an O'Reilly Book :( |
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 (Fuel::$env === Fuel::DEVELOPMENT): ?> | |
<link rel="stylesheet" type="text/css" href="/css/boilerplate/1-reset.css" /> | |
<? FOREACH (File::read_dir(DOCROOT.'css/screen') as $_file): ?> | |
<link rel="stylesheet" type="text/css" href="/css/screen/<?= $_file ?>" /> | |
<? ENDFOREACH; ?> | |
<link rel="stylesheet" type="text/css" href="/css/boilerplate/2-helpers.css" /> | |
<link rel="stylesheet" type="text/css" href="/css/boilerplate/3-responsive.css" /> | |
<? FOREACH (File::read_dir(DOCROOT.'css/responsive') as $_file): ?> | |
<link rel="stylesheet" type="text/css" href="/css/responsive/<?= $_file ?>" /> | |
<? ENDFOREACH; ?> |
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
<?xml version="1.0" ?> | |
<project default="js.minify" basedir="."> | |
<target name="load.properties"> | |
<echo>Initialize Variables</echo> | |
<property name="public.path" value="httpdocs" /> | |
<echo message="public.path: ${public.path}" /> | |
<property name="yuiCompressor.path" value="includes/build/yuicompressor-2.4.6.jar" /> |