Skip to content

Instantly share code, notes, and snippets.

View simensen's full-sized avatar
🎯
Focusing

Beau Simensen simensen

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am simensen on github.
  • I am simensen (https://keybase.io/simensen) on keybase.
  • I have a public key whose fingerprint is 410B 3483 2AD8 EF16 54BE D5DD AB0E 3B66 FD69 F67C

To claim this, I am signing this object:

@simensen
simensen / console.php
Last active August 29, 2015 14:14 — forked from mikebell/console.php
<?php
use Silex\Application AS SilexApplication;
use Symfony\Component\Console\Application AS ConsoleApplication;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Helper\HelperSet;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
require_once __DIR__.'/../web/index.php';
@simensen
simensen / -
Created February 26, 2015 15:41
#!/usr/bin/env bash
#
# Copyright (C) 2012 Dragonfly Development Inc.
#
REMOTE_URL=git@github.com:sculpin/sculpin.git
BUILD_DIR=build
LATEST=master
AS=master
extern "C" {
struct _xmlNode;
}
#include <libxml/tree.h>
Node* node;
cout << "Tag: " << node->cobj()->name << "\n";
cout << "Type: " << node->cobj()->type << "\n";
<?php
$xpath->registerNamespace("az", "http:/s3.amazonaws.com/doc/2006-03-01/");
?>
<title><?php $string->p('name.long'); ?></title>
<?php
// We want to make certain we have the repose context
// included so that we can get the reposeSessionFactory
// object.
$context->import('repose.context.php');
$context->set('spaceRepository', array(
'className' => 's3a_domain_ReposeSpaceRepository',
'constructorArgs' => array(
<?php
// Called when the POST form is submitted.
protected function onSubmit(halo_HttpRequest $httpRequest, halo_HttpResponse $httpResponse) {
$space = $this->spaceRepository->findById(
$httpRequest->getUrlParam('spaceId')
);
$space->setName($httpRequest->getPostParam('name'));
$space->setPhone($httpRequest->getPostParam('phone'));
$space->setAddressLine1($httpRequest->getPostParam('addressLine1'));
$space->setAddressLine2($httpRequest->getPostParam('addressLine2'));
<?php
hc_core_ClassLoader::prependPaths('/home/altern8/workspaces/halo-php/lib');
hc_core_ClassLoader::prependPaths('/home/altern8/workspaces/substrate-php/lib');
hc_core_ClassLoader::prependPaths('/home/altern8/workspaces/repose-php/lib');
hc_core_ClassLoader::prependPaths('/home/altern8/workspaces/skittle-php/lib');
?>