- Black Pond
- Enternal sunshine of a spotless mind
- Tyrannosaurus
- Take Shelter
- Life of Brian
- Meaning of Life
- Search for the Holy Grail
- Shame
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 | |
// Heredoc Syntax | |
// For more info: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc | |
echo <<<EOT | |
This is a block of text. | |
EOT; | |
// Breaking PHP tags |
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
# Edit the Hosts file on OSX (I always forget this...) | |
mate /private/etc/hosts | |
# Run cucumber and rspec using autotest | |
AUTOFEATURE=true autospec | |
# Install Rails BDD Suite | |
sudo gem install rspec rspec-rails cucumber webrat | |
# Update Rails |
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
Last login: Mon Jan 26 18:53:57 on console | |
Captain-Dread:~ andypearson$ cd 0working/github | |
Captain-Dread:github andypearson$ rails formtastic_example | |
create | |
create app/controllers | |
create app/helpers | |
... | |
... | |
Captain-Dread:github andypearson$ cd formtastic_example | |
Captain-Dread:formtastic_example andypearson$ script/plugin install git://github.com/justinfrench/formtastic.git |
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 | |
/* | |
* Database Class | |
* Created by - Andy Pearson | |
* Date - 20.02.07 | |
*/ | |
class db | |
{ |
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
%y%m%d-__DB__ | |
%y%m%d-__DB__-__TABLE__ |
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
/* | |
Name: Reset CSS | |
Author: Eric Meyer | |
URI: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, |
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
# Using Filter branch to remove a file from entire repository history | |
git filter-branch --index-filter 'git rm --cached --ignore-unmatch filename' HEAD | |
rm -r .git/refs/original |
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
body { | |
font:62.5%/1.5 Helvetica, Arial, sans-serif; | |
} | |
/* ---- Clearfix */ | |
.clearfix:after { | |
content:"."; | |
display:block; | |
height:0; |
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 | |
$photos = array( | |
'one.jpg', | |
'two.jpg', | |
'three.jpg', | |
'four.jpg', | |
'five.jpg' | |
); | |
$photo = $photos[array_rand($photos)]; |
OlderNewer