Skip to content

Instantly share code, notes, and snippets.

View opheliadesign's full-sized avatar

Benjamin McMahan opheliadesign

View GitHub Profile
@opheliadesign
opheliadesign / l4-domain.php
Created November 2, 2015 22:25
Laravel 4 SaaS domain setter
// Routes
Route::group(array('domain' => '{account}.primarydomain.com', 'before' => 'getSubdomain'), function()
{
Route::get('/', function()
{
if (Auth::guest()) {
return Redirect::guest('login');
} else {
return Redirect::to('secure/dashboard');
}
@opheliadesign
opheliadesign / audio-nsurlconnection
Created February 7, 2015 19:27
Attempt at NSURLConnection to download MP3 file
#import "PlayerViewController.h"
@interface PlayerViewController ()
@end
@implementation PlayerViewController
- (void)viewDidLoad {
[super viewDidLoad];