Skip to content

Instantly share code, notes, and snippets.

View thinkstylestudio's full-sized avatar

Theron Smith thinkstylestudio

View GitHub Profile
class MigrateOrdersAndProducts extends Seeder
{
protected $users;
protected $orders;
public function __construct() {
$this->users = [];
$this->orders = [];
}
@thinkstylestudio
thinkstylestudio / .bash_profile
Created July 5, 2016 20:25 — forked from JeffreyWay/.bash_profile
Prettier git logs
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@thinkstylestudio
thinkstylestudio / laravel-elixir-webpack.js
Created July 5, 2016 20:25 — forked from JeffreyWay/laravel-elixir-webpack.js
Laravel Elixir Webpack Extension
var gulp = require('gulp');
var gulpWebpack = require('webpack-stream');
var Elixir = require('laravel-elixir');
var $ = Elixir.Plugins;
var config = Elixir.config;
/*
|----------------------------------------------------------------
| Webpack Compilation
@thinkstylestudio
thinkstylestudio / install.sh
Created July 5, 2016 20:27 — forked from JeffreyWay/install.sh
Super-fast LAMP + 5.5 install script.
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
@thinkstylestudio
thinkstylestudio / countries.php
Created July 5, 2016 20:29 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify('./js/app.js')
.transform(babelify, { stage: 0 })
.bundle()
.on('error', function(e){
@thinkstylestudio
thinkstylestudio / index.html
Created July 22, 2016 22:15 — forked from japboy/index.html
Vue.js sample using Google Maps API
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>page.js</title>
<style>
#nav {
box-sizing: border-box;
left: 0;
@thinkstylestudio
thinkstylestudio / BenSmith_Annotations.xml
Created December 17, 2016 07:22 — forked from RadTechDad/BenSmith_Annotations.xml
BenSmith - PHPStorm Live Templates
<templateSet group="BenSmith-Annotations">
<template name="anno" value="/**&#10;* $ANNOTATIONS$&#10;* @return Response&#10;*/" description="Add docblock ready for annotations below" toReformat="false" toShortenFQNames="true">
<variable name="ANNOTATIONS" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="true" />
<option name="HTML" value="true" />
<option name="PHP" value="true" />
</context>
</template>
<template name="@G" value="@Get(&quot;$ROUTE$&quot;, as=&quot;$NAME$&quot;)" description="Get route annotation" toReformat="false" toShortenFQNames="true">
-Xms128m
-Xmx750m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseCompressedOops
-agentlib:yjpagent=probe_disable=*,disablealloc,disabletracing,onlylocal,disableexceptiontelemetry,delay=10000,sessionname=WebIde90
@thinkstylestudio
thinkstylestudio / UuidModel.php
Created January 27, 2017 19:52 — forked from danb-humaan/UuidModel.php
Trait for implementing UUIDs in Laravel models
<?php
namespace App\Traits;
use Rhumsaa\Uuid\Uuid;
use Illuminate\Database\Eloquent\ModelNotFoundException;
/**
* Trait UuidModel
* @package App\Traits