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
Blade::extend(function ($view) { | |
$pattern = Blade::createOpenMatcher('cache'); | |
$replace = "<?php echo PageCache::cache$2 { ?>"; | |
$view = preg_replace($pattern, $replace, $view); | |
// Replace closing tag | |
$view = str_replace('@endcache', '<?php }); ?>', $view); | |
return $view; |
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
<select name="country" class="form-control"> | |
<option {{Input::old('country',$profile->country)=="Afghanistan"?"selected":""}} value="Afghanistan">Afghanistan</option> | |
<option {{Input::old('country',$profile->country)=="Albania"?"selected":""}} value="Albania">Albania</option> | |
<option {{Input::old('country',$profile->country)=="Algeria"?"selected":""}} value="Algeria">Algeria</option> | |
<option {{Input::old('country',$profile->country)=="American Samoa"?"selected":""}} value="American Samoa">American Samoa</option> | |
<option {{Input::old('country',$profile->country)=="Andorra"?"selected":""}} value="Andorra">Andorra</option> | |
<option {{Input::old('country',$profile->country)=="Angola"?"selected":""}} value="Angola">Angola</option> | |
<option {{Input::old('country',$profile->country)=="Anguilla"?"selected":""}} value="Anguilla">Anguilla</option> | |
<option {{Input::old('countr |
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
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<link rel="import" href="../core-tooltip/core-tooltip.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> |
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
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf | |
// In case you got the issue | |
// wkhtmltopdf: error while loading shared libraries: | |
// libfontconfig.so.1: cannot open shared object file: No such file or directory | |
// | |
// run the command below: | |
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1 |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" media="all" href="../../css/base.css" /> | |
<script src="../../js/jquery.js"></script> | |
<script src="../../js/iframe.js"></script> | |
<script src="../../js/iframe/comment.js"></script> | |
<title>Clipper</title> | |
<style> | |
body{ | |
background-color:#2c2e3e !important; |
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
composer create-project laravel/laravel todolist |
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
'mysql' => array( | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'lucifier_todolist', | |
'username' => 'username', | |
'password' => 'password', | |
'charset' => 'utf8', | |
'collation' => 'utf8_unicode_ci', | |
'prefix' => '', | |
), |
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 artisan migrate:make create_tasks_table --table=tasks --create |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateTasksTable extends Migration { | |
public function up() | |
{ | |
Schema::create('tasks', function(Blueprint $table) |
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 artisan migrate |
OlderNewer