Skip to content

Instantly share code, notes, and snippets.

View rtablada's full-sized avatar

Ryan Tablada rtablada

View GitHub Profile
@rtablada
rtablada / gist:7191114
Created October 28, 2013 03:38
What I want to do with subsplits
I have started my App Toolkit which will be a collection of my personal "essential" packages for Laravel application development.
Since I would like to include these as a single package I would like to preform subsplits similar to the way that Laravel/Framework handles subsplitting its various Illuminate components.
So without further ado, my directory structure looks like this
src
|- Rtablada
| |- AppToolKit
| |- AppBuilder
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "master"
# Some variables
server_ip = "192.168.33.10"
@rtablada
rtablada / gist:8407891
Created January 13, 2014 20:50
Things you must learn from Beginner to Junior Dev
HTML
CSS
Javascript
jQuery
PHP
Wordpress
FTP
HTTP
DNS
Apache
@rtablada
rtablada / nginx.sh
Created January 30, 2014 04:54
A provisioning script for setting up nginx for an existing Laravel project with Vapobrash
#!/usr/bin/env bash
echo ">>> Updating Nginx"
# Chech that Nginx is installed
nginx -v > /dev/null 2>&1
NGINX_IS_INSTALLED=$?
if [ $NGINX_IS_INSTALLED -eq 0 ]; then
# Change default vhost created
@rtablada
rtablada / gist:8899537
Created February 9, 2014 14:05
Ideas for Laravel Packages

NoSQL history/analytics event recorder (pgsql json driver)

Allows you to record and query event data stored in NoSQL for analytics. Written originally with a PGSQL driver but extensible for use with Mongo, Couch, etc.

JSON based Cron Job Lister

Allows you to create a JSON file of artisan, bash, or cron tasks to add to the crontab Tracks and modifies crontab to add cronjobs.

@rtablada
rtablada / gist:8941013
Created February 11, 2014 18:30
Sublime 2 Plugins For My Day To Day Workflow

Color

  • Dayle Rees Colour Schemes (Riding the development repo) - Keen

Must Haves

  • Advanced New File
  • Alignment
  • ChangeQuotes
  • ColorPick - MacOSX color picker
  • DashDoc - Checks the API in Dash for OSX
  • DocBlokr
@rtablada
rtablada / gist:9043781
Created February 17, 2014 02:40
Do you test all the child classes of an abstract class?

So if I have a parent abstract class that is fully implemented except for the defining property number:

abstract class DividesByFive
{
	protected $number;

	public function getResult()
	{
 return $this->number / 5;
@rtablada
rtablada / routes.php
Last active August 29, 2015 13:56
Thoughts on literate Laravel Routes
<?php
// Images
Route::get('images', ['uses' => 'Images@index', 'as' => 'images.index']);
Route::get('images/new', ['uses' => 'Images@create', 'as' => 'images.create']);
Route::post('images', ['uses' => 'Images@store', 'as' => 'images.store']);
@rtablada
rtablada / at.sh
Created February 27, 2014 14:33
Use atom from the command line
ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh ~/bin/atom
@rtablada
rtablada / gist:9589842
Created March 16, 2014 21:00
Modification of @fideloper's Validator to allow Model based validations
<?php namespace Initr\Services;
use Illuminate\Validation\Factory as LaravelValidator;
abstract class Validator
{
protected $validator;
protected $data = array();