This file contains hidden or 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
#!/usr/bin/php | |
<?php | |
$arg = $argv[1]; | |
$voices = ['Good News', 'Zarvox', 'Bahh']; | |
foreach (range(1, 108) as $v) { | |
exec("say -v {$voices[rand(0,3)]} $arg"); | |
} |
This file contains hidden or 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
#!/usr/bin/php | |
<?php | |
function get_image($query){ | |
$url = 'http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q='; | |
$url .= urlencode("site:www.thebrickfan.com " . $query . " lego"); | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
$data = curl_exec($curl); | |
curl_close($curl); |
This file contains hidden or 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 | |
use Illuminate\Database\Seeder; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Facades\App; | |
use Illuminate\Support\Facades\Config; | |
use Illuminate\Support\Facades\DB; | |
class DatabaseSeeder extends Seeder { |
This file contains hidden or 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
FROM larazest/base:1.0.0 | |
MAINTAINER Alfred Nutile <[email protected]> | |
# Initial Install and Provision | |
# Mount the project to the /share | |
# CHMOD app/storage or storage | |
# As the directions on http://laravel.com/docs/4.2/installation chmod your storage as needed | |
# mysql | |
# The local developer needs to connect to a remote storage since AWS will be remote as well. |
This file contains hidden or 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
public function getActiveAttribute($value) | |
{ | |
if($this->site_override()->first() != null && ($this->site_override()->first()->active !== null)) | |
{ | |
return $this->site_override()->first()->active; | |
} | |
return $value; | |
} |
This file contains hidden or 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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class AddActiveToSiteOverrideTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
This file contains hidden or 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 App\Http\Middleware; | |
use AlfredNutileInc\QuickAuth\QuickAuthFacade; | |
use Closure; | |
use Illuminate\Contracts\Auth\Guard; | |
use Illuminate\Contracts\Routing\Middleware; | |
use Illuminate\Contracts\Routing\ResponseFactory; | |
class Authenticated implements Middleware { |
This file contains hidden or 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 BehatEditor\Http; | |
use BehatEditor\Services\ResponseServices; | |
use Exception; | |
use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
use Illuminate\Support\Facades\Log; | |
use Illuminate\Support\Facades\Response; | |
class Kernel extends HttpKernel { |
This file contains hidden or 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
var elixir = require('laravel-elixir'); | |
/* | |
|---------------------------------------------------------------- | |
| Have a Drink! | |
|---------------------------------------------------------------- | |
| | |
| Elixir provides a clean, fluent API for defining some basic | |
| Gulp tasks for your Laravel application. Elixir supports | |
| several common CSS, JavaScript and even testing tools! |
This file contains hidden or 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
//gulpfile.js | |
var gulp = require('gulp'); | |
var beep = require('beepbeep'); | |
var sys = require('sys'); | |
var exec = require('child_process').exec; | |
var gutil = require('gulp-util'); | |
var plumber = require('gulp-plumber'); | |
var onError = function(err) { | |
beep([1000, 1000, 1000]); |