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
// History.js It! | |
// v1.0.1 - 30 September, 2012 | |
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; |
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
// Database connector | |
<?php | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
/** | |
* Configure the database and boot Eloquent | |
*/ | |
global $capsule; | |
$capsule = new Capsule; | |
$capsule->addConnection(array( | |
'driver' => getenv('DB_DRIVER'), |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$config['views_path'] = APPPATH . 'views/blade/'; | |
$config['cache_path'] = APPPATH . 'cache/blade/'; |
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 | |
if ( ! function_exists('config_path')) | |
{ | |
/** | |
* Get the configuration path. | |
* | |
* @param string $path | |
* @return string | |
*/ |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Agila Theme/Agila Dracula.tmTheme", | |
"default_line_ending": "unix", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"drag_text": false, | |
"draw_white_space": "all", | |
"fallback_encoding": "UTF-8", | |
"font_size": 11, | |
"highlight_line": 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
public function boot(DispatcherContract $events) | |
{ | |
parent::boot($events); | |
$path = storage_path().'/logs/query.log'; | |
\Event::listen('illuminate.query', function($sql, $bindings, $time) use($path) { | |
// Uncomment this if you want to include bindings to queries | |
//$sql = str_replace(array('%', '?'), array('%%', '%s'), $sql); | |
//$sql = vsprintf($sql, $bindings); | |
$time_now = date('Y-m-d H:i:s'); |
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 | |
// Put file to public dir and run it | |
$basePath = dirname(__DIR__); | |
$link = "$basePath/data"; | |
$target = "$basePath/storage/app"; | |
var_dump($target); | |
var_dump($link); | |
var_dump(symlink($target, $link)); |
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
{ | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/User/SublimeLinter/Agila Dracula (SL).tmTheme", | |
"default_line_ending": "unix", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"drag_text": true, | |
"draw_white_space": "all", | |
"fallback_encoding": "UTF-8", | |
"folder_exclude_patterns": |
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
[ | |
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }, | |
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"}, | |
{"keys": ["f1"], "command": "dired", "args": { "immediate": true } } | |
] |
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
<VirtualHost *:80> | |
ServerName laravel.demo | |
DocumentRoot "D:/www/kloon_training/demo_laravel/public" | |
<Directory "D:/www/kloon_training/demo_laravel/public"> | |
Options +Indexes +Includes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
OlderNewer