This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet yl | |
@yield('${1:content}') | |
snippet yld | |
@yield('${1:content}', '${2:default}') | |
snippet ext | |
@extends('${1:layouts.master'}) | |
@section('${2:content}') | |
${3://} | |
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Pathogen | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
# Install Xoria256 | |
mkdir -p ~/.vim/colors/ | |
curl -LSso ~/.vim/colors/xoria256.vim https://raw.githubusercontent.com/vim-scripts/xoria256.vim/master/colors/xoria256.vim | |
# Install Bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Export The PHP Path From MAMP | |
#export PATH="/usr/local/bin:$PATH" | |
#export PATH=/Applications/MAMP/bin/php/php5.5.3/bin:$PATH | |
export PATH=~/.composer/vendor/bin:$PATH | |
export PATH=vendor/bin:$PATH | |
export PATH="/usr/local/share/npm/bin:$PATH" | |
export PATH="/usr/local/Cellar/python/2.7.7_2/bin:$PATH" | |
export PATH=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:$PATH | |
# Mac Vim Stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait LaravelTrait | |
{ | |
/** | |
* The Laravel Aliases. | |
* | |
* @var array | |
*/ | |
protected $aliases = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class LoginController extends \BaseController { | |
/** | |
* Display a listing of the resource. | |
* | |
* @return Response | |
*/ | |
public function index() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if(Session::has('flash_message')) | |
<div class="alert alert-{{ Session::get('flash_type', 'info') }} alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
{{ Session::get('flash_message') }} | |
</div> | |
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Pingpong\Traits; | |
use Input, Redirect, Validator; | |
trait ValidatorTrait | |
{ | |
protected $validator; | |
public function validate(array $input = null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// translator | |
function __($id, array $replace = array(), $locale = 'en') | |
{ | |
return Lang::get('app.'.$id, $replace, $locale); | |
} | |
// file download | |
function set_download_header($filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>404 Not Found</title> | |
<style> | |
@import url(//fonts.googleapis.com/css?family=Lato:700); | |
body { | |
margin:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Twitter extends Eloquent | |
{ | |
protected $fillable = ['id_str', 'name', 'username', 'avatar']; | |
} |