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
<div class="row" id="box-search"> | |
<div class="thumbnail text-center"> | |
<img src="img/cafe.jpg" alt="" class="img-responsive"> | |
<div class="caption"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p> | |
</div> | |
</div> | |
</div> |
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
#!/bin/sh | |
# replace *.java by your language extension | |
find . -name '*.java' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$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 | |
//file: /.env.local.php | |
// return the configuration for the 'local' environment | |
return array( | |
'db_host' => '127.0.0.1', | |
'db_name' => 'DB_NAME', // specify database name | |
'db_user' => 'DB_USER', // specify database username | |
'db_pass' => 'DB_PASS', // specify database password | |
); |
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
{{-- file: /app/views/layouts/master.blade.php --}} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
{{-- Part: all meta-related contents --}} | |
@yield('head-meta') | |
{{-- Part: site title with default value in parent --}} | |
@section('head-title') |
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 | |
public function canBuyALaptop() | |
{ | |
if( isCheap( $laptopRepository->price() )) { | |
if( $laptopRepository->isAvailable() ) { | |
return true; | |
} else { | |
return false; | |
} |
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
// require: $ npm install --save-dev del | |
var gulp = require('gulp'); | |
var elixir = require('laravel-elixir'); | |
var del = require('del'); | |
elixir.extend("remove", function(path) { | |
gulp.task("remove", function() { | |
del(path); | |
}); |
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
#!/bin/sh | |
mv www/index.php index.php.saved | |
rm -rf www/* | |
# update project/ to your directory name | |
cp -a project/public/* www | |
cp project/public/.* www | |
rm -rf www/index.php | |
mv index.php.saved www/index.php |
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
class Kernel extends HttpKernel { | |
/** | |
* The application's global HTTP middleware stack. | |
* | |
* @var array | |
*/ | |
protected $middleware = [ | |
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode', | |
'Illuminate\Cookie\Middleware\EncryptCookies', |
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 App\Http\Middleware; | |
use Closure; | |
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; | |
class VerifyCsrfToken extends BaseVerifier { | |
/** | |
* Exclude route from CSRF check | |
* @var 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
/** | |
* The mailer contract | |
* | |
* @var Illuminate\Contracts\Mail\Mailer | |
*/ | |
protected $mail; | |
public function sendUserRegistered($user) | |
{ | |
$view = 'user_registered'; |
OlderNewer