Paul Schwarz paulsschwarz

View End Result
1 2 3 4 5 6 7 8 9 10
<html>
<head>
</head>
<body>
 
I'm the chrome.
 
<div id="a big div that wraps admin, where's the problem?">
I'm the admin menu
View gist:6342573
1 2 3 4 5 6 7 8 9 10
<html>
<head>
</head>
<body>
 
I'm the chrome.
{{>content}}
 
</body>
</html>
View gist:6340325
1 2 3 4 5 6 7 8 9 10
<?php
 
class Kostache_Page extends Kostache_Base {
 
/**
* @return Kostache_Page
*/
public static function factory()
{
$m = new Mustache_Engine(
View gist:6338862
1 2 3 4 5 6 7 8 9 10
protected function _response_view()
{
/**
* We can determine the view for each request based on the route
* directory/controller/action
*/
$directory = $this->request->directory();
$controller = $this->request->controller();
$action = $this->request->action();
// The action has not gone through PSR-0 yet
View spec
1 2 3 4 5 6 7 8 9
<?php
 
namespace spec\SO\Entity;
 
use
PHPSpec2\ObjectBehavior,
SO\Entity\Money as M;
 
class Money extends ObjectBehavior {
View foo_validator.php
1 2 3 4 5 6 7 8 9 10
<?php
 
class FooValidator implements Validator
{
public function __construct(Validator $validator)
{
$this->validator = $validator
$this->validator->rule('name', 'not_empty')
->rule('name', 'max_length', [':value', 35])
->rule('name', 'min_length', [':value', 5]);
View foo.rb
1 2 3 4
template "/tmp/foo.rb"
source "foo.rb.erb"
cookbook "banana"
end
View foo.rb
1 2 3 4
template "/tmp/foo.rb"
source "foo.rb.erb"
cookbook "banana"
end
View bootstrap_chef.bash
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
# call like this on the target server:
# CHEFREPO='git://github.com/paulsschwarz/vagrant-cookbooks.git' CHEF_ENV='production' bash <( curl -L https://raw.github.com/gist/2974764 )
 
set -e
 
export RUBYGEMS_VERSION="1.8.24"
export CHEF_DIR="${HOME}/chef"
sudo rm -rf $CHEF_DIR
mkdir -p "$CHEF_DIR"
View describetripgateway.php
1 2 3 4 5 6 7 8 9 10
<?php
 
/**
* Dates Gateway
*/
 
class DescribeTripGateway extends \PHPSpec\Context {
 
public function beforeAll()
{
Something went wrong with that request. Please try again.