Skip to content

Instantly share code, notes, and snippets.

View simensen's full-sized avatar
🎯
Focusing

Beau Simensen simensen

🎯
Focusing
View GitHub Profile
- Bring Guzzle HTTP into the project
- Use `AppServiceProvider` or add a `RedditServiceProvider`
- Add a route `/r/{subreddit}`
- `https://www.reddit.com/r/{subreddit}.json`
- Render a Blade view with articles
- List articles on view
@simensen
simensen / MyReactComponent.js
Created December 9, 2015 01:32 — forked from thmain/MyReactComponent.js
Skeleton React Component with descriptions for all of its lifecycle methods
/**
* @jsx React.DOM
*/
var React = require('react'),
MyReactComponent = React.createClass({
// The object returned by this method sets the initial value of this.state
getInitialState: function(){
return {};
@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
@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';

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 / gist:6665994
Last active December 23, 2015 16:59 — forked from igorw/gist:6557390
<?php
namespace Yolo;
class ServiceNotFoundException extends \RuntimeException {}
class RecursiveServiceDefinitionException extends \RuntimeException {}
class InvalidArgumentException extends \RuntimeException {}
class Container
{
#!/bin/sh
# deploy.sh
N="`readlink \"$1\"`"
mv -T "$1.stage" "$1"
ln -s "$N" "$1.stage"
rm -rf "$N"
cp -aH "$1" "$N"
#!/usr/bin/zsh
git subsplit publish "
library/Zend/Authentication:git@github.com:weierophinney/Component_ZendAuthentication.git
library/Zend/Barcode:git@github.com:weierophinney/Component_ZendBarcode.git
library/Zend/Cache:git@github.com:weierophinney/Component_ZendCache.git
library/Zend/Captcha:git@github.com:weierophinney/Component_ZendCaptcha.git
library/Zend/Code:git@github.com:weierophinney/Component_ZendCode.git
library/Zend/Config:git@github.com:weierophinney/Component_ZendConfig.git
library/Zend/Console:git@github.com:weierophinney/Component_ZendConsole.git
library/Zend/Crypt:git@github.com:weierophinney/Component_ZendCrypt.git
@simensen
simensen / gist:4527433
Created January 14, 2013 02:41
PHP FQDN Golf scores
find src -name '*.php' | grep -iv tests | cut -f2- -d/ | cut -f1 -d\. | awk '{ print length, $0 }' | sort -n | tr / \\
@simensen
simensen / gist:4255739
Created December 11, 2012 03:41 — forked from victorb/gist:4181764
Static Site Generators

This is an updated fork of the gist located here: https://gist.github.com/2254924

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby