Skip to content

Instantly share code, notes, and snippets.

View damonsharp's full-sized avatar

Damon Sharp damonsharp

View GitHub Profile
@damonsharp
damonsharp / routes.php
Last active January 4, 2016 01:29
Laravel - Filtering of Route::resource() Suggestion
// Instead of this...
Route::group(array('before' => 'language'), function(){
Route::resource('registrations', 'RegistrationsController', array('only' => array('index', 'store')));
});
// Maybe something like this...
@damonsharp
damonsharp / laravel_xml_sitemap.php
Last active August 29, 2015 14:02
Simple Laravel XML Sitemap Generation based on routes file
// XML sitemap - requires this package: https://github.com/RoumenDamianoff/laravel-sitemap
// NOTE: This example uses a closure within routes.php. If attempting this in a controller,
// especially with Laravel 5+, make sure to include the required classes, which in this case
// would be...
// use App;
// use URL;
// if utilizing the Carbon library for dates, also include Carbon...
// use Carbon\Carbon;
@damonsharp
damonsharp / dws-sublime-fetch-config
Created June 30, 2014 22:22
Sublime Text Fetch Config
{
"files":
{
},
"packages":
{
"Angular JS": "https://github.com/angular/angular.js/archive/master.zip",
"Backbone JS": "https://github.com/documentcloud/backbone/zipball/master",
"CodeIgniter": "http://codeigniter.com/download.php",
"Ember JS": "https://github.com/emberjs/ember.js/archive/master.zip",
@damonsharp
damonsharp / bash_profile
Last active August 29, 2015 14:15
Bash Profile Aliases & Other Goodies
# Terminal visuals from http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
export EDITOR='subl'
# Keep at top
export PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/.composer/vendor/bin'
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Droid Sans Mono",
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"theme": "DefaultPlus Monokai.sublime-theme",
"margin": 10,