Skip to content

Instantly share code, notes, and snippets.


Daniel Sims danielgsims

  • Detroit, MI
View GitHub Profile

Keybase proof

I hereby claim:

  • I am danielgsims on github.
  • I am dasim ( on keybase.
  • I have a public key ASDgQLm0cNo7UfGYPjetoyEYunNyML1slOT8k8m_7NvTZgo

To claim this, I am signing this object:

danielgsims / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:84efe4c10ac97c56b18c
$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']);
View gist:b9e5ad85cf30a5c5ece7
$app = new \Slim\App();
$app['resolver'] = new \Slim\Resolvers\ContainerResolver($app);
$app->get('/', 'MyController:index');
class MyController
protected $app;