- We've got some components
A
,B
andC
which provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
/** | |
* Enable Bootstrap tooltips using Vue directive | |
* @author Vitim.us | |
* @see https://gist.github.com/victornpb/020d393f2f5b866437d13d49a4695b47 | |
* @example | |
* <button v-tooltip="foo">Hover me</button> | |
* <button v-tooltip.click="bar">Click me</button> | |
* <button v-tooltip.html="baz">Html</button> | |
* <button v-tooltip:top="foo">Top</button> | |
* <button v-tooltip:left="foo">Left</button> |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
Tip: Use sass-plus
to compile Sass and add vendor prefixes automatically: https://www.npmjs.com/package/sass-plus
This is side-document providing details for some highlighted changes in 2.5.0. For a full list of changes, see the full release note.
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class LaravelConditionalIndexMigration extends Migration | |
{ | |
/** | |
* Run the migrations. |
<?php | |
/************************************************************************* | |
* Get File Information | |
*/ | |
// Assuming these come from some data source in your app | |
$s3FileKey = 's3/key/path/to/file.ext'; | |
$fileName = 'file.ext'; |
/** | |
* descructive | |
* https://github.com/lodash/lodash/issues/1677 | |
*/ | |
function toggle(collection, item) { | |
var idx = _.indexOf(collection, item); | |
if(idx !== -1) { | |
collection.splice(idx, 1); | |
} else { | |
collection.push(item); |