Skip to content

Instantly share code, notes, and snippets.

View simensen's full-sized avatar
🎯
Focusing

Beau Simensen simensen

🎯
Focusing
View GitHub Profile
@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 / 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 / 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: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

<?php
define('USER_ID', 1);
// This sets up everything to include all of your
// dependencies. Anything in composer.json will
// be available by simply requesting the class name.
require 'vendor/.composer/autoload.php';
use Symfony\Component\HttpFoundation\Request;
function getQueue(vars, $target, callback) {
callback(); // errors here.
}
function getEventsInfoContainer() {
alert('sup');
}
getQueue(vars, $left, getEventsInfoContainer);
<script type="text/javascript">
// Global
var filter = null;
$(document).ready(function(){
var $left = $('#container_left');
var $right = $('#container_right');
var $vars = null;
<html>
<head>
<title>Work in Progress</title>
<style type="text/css">
body
{
border:solid thin black;