Skip to content

Instantly share code, notes, and snippets.

Avatar
🌐
Available for new consulting projects this spring.

Beau Simensen simensen

🌐
Available for new consulting projects this spring.
View GitHub Profile
View gist:a004e023dc54846dbc54a884c0d896d3
- 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 Dec 9, 2015 — forked from thmain/MyReactComponent.js
Skeleton React Component with descriptions for all of its lifecycle methods
View MyReactComponent.js
/**
* @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 {};
View -
#!/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
View 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';
View keybase.md

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:

View gist:6665994
<?php
namespace Yolo;
class ServiceNotFoundException extends \RuntimeException {}
class RecursiveServiceDefinitionException extends \RuntimeException {}
class InvalidArgumentException extends \RuntimeException {}
class Container
{
View deploy.sh
#!/bin/sh
# deploy.sh
N="`readlink \"$1\"`"
mv -T "$1.stage" "$1"
ln -s "$N" "$1.stage"
rm -rf "$N"
cp -aH "$1" "$N"
View update.sh
#!/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 Jan 14, 2013
PHP FQDN Golf scores
View gist:4527433
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 Dec 11, 2012 — forked from victorb/gist:4181764
Static Site Generators
View gist:4255739

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

You can’t perform that action at this time.