This file contains 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
sudo apt-get install zlib1g zlib1g-dev zlib-bin zlibc |
This file contains 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" /> |
This file contains 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 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 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 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 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 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 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 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] |
OlderNewer