Skip to content

Instantly share code, notes, and snippets.

View Braunson's full-sized avatar

Braunson Yager Braunson

View GitHub Profile
@Braunson
Braunson / routing_patterns.php
Created November 21, 2016 20:20 — forked from lucasdavies/routing_patterns.php
Routing patterns from laravel-tricks.com
<?php
// This is what you might have right now
Route::get('users/{id}', 'UserController@getProfile')->where('id', '[\d+]+');
Route::get('products/{id}', 'ProductController@getProfile')->where('id', '[\d+]+');
Route::get('articles/{slug}', 'ArticleController@getFull')->where('slug', '[a-z0-9-]+');
Route::get('faq/{slug}', 'FaqController@getQuestion')->where('slug', '[a-z0-9-]+');
// and many more, now imagine you'll have to change the rule
// Instead, you could have a handy list of patterns and reuse them everywhere:
@Braunson
Braunson / pwd-faas.md
Created January 11, 2017 02:55 — forked from alexellis/pwd-faas.md
pwd-faas-quickstart.md

This is a Quickstart guide for FaaS functions as a Service on Play-with-docker.com

Head over to http://play-with-docker.com/ and start a new session. Add one host to start with.

# docker swarm init # use --advertise-addr here and pick the 10.x IP address range

# git clone https://github.com/alexellis/faas
# cd faas
# ./deploy_stack.sh

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)