Skip to content

Instantly share code, notes, and snippets.

View danielgsims's full-sized avatar

Daniel Sims danielgsims

  • Detroit, MI
View GitHub Profile
$app = new \Slim\App();
$app['resolver'] = new \Slim\Resolvers\ContainerResolver($app);
$app->get('/', 'MyController:index');
$app->run();
class MyController
{
protected $app;
$app = new \Slim\App();
$app['resolver'] = new \Slim\Resolvers\DependencyResolver($app);
$app['dependency'] = function() {
return new MyDependency;
};
$app['ExampleController'] = function($c) {
return new MyController($c['response'],$c['dependency']);
};
@danielgsims
danielgsims / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am danielgsims on github.
  • I am dasim (https://keybase.io/dasim) on keybase.
  • I have a public key ASDgQLm0cNo7UfGYPjetoyEYunNyML1slOT8k8m_7NvTZgo

To claim this, I am signing this object: