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
export function handleTextDirective(el, output, expression) { | |
// If nested model key is undefined, set the default value to empty string. | |
if (output === undefined && expression.match(/\./).length) { | |
output = '' | |
} | |
let selection | |
let anchorNode | |
let position | |
let isElBeingEdited |
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 PHPUnit\Framework\Assert as PHPUnit; | |
use Illuminate\Support\Arr; | |
use Illuminate\Foundation\Testing\TestResponse; | |
use Illuminate\Database\Eloquent\Model; | |
TestResponse::macro('assertViewHasDeep', function ($key, $value = null) { | |
$this->ensureResponseHasView(); |
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
0⃣ 0, keycap, zero | |
1⃣ 1, number, one | |
🕜 1, 30, clock, time, one, thirty, 1:30, one-thirty | |
🕐 1, clock, time, one, 00, o’clock, 1:00, one o’clock | |
2⃣ 2, number, two | |
🕝 2, 30, clock, time, two, thirty, 2:30, two-thirty | |
🕑 2, clock, time, two, 00, o’clock, 2:00, two o’clock | |
3⃣ 3, keycap, three | |
🕞 3, 30, three, clock, time, thirty, 3:30, three-thirty | |
🕒 3, three, clock, time, 00, o’clock, 3:00, three o’clock |
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 { | |
background: #f5f5f5; | |
} | |
/* CONTENT PAGE */ | |
.forum .forum-thread { | |
background: none; | |
} |
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
<template> | |
<div class="some-class"> | |
{{ someVariable }} | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { |
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\Console\Commands; | |
use App\User; | |
use Illuminate\Console\Command; | |
class CheckSessionForNodeSocket extends Command | |
{ | |
/** |
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
:focus, :active { | |
outline: 0 !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
// I composed them into my layout file | |
View::composer('layout', function($view) | |
{ | |
// Current route object | |
$route = Route::getCurrentRoute(); | |
// Take out first part of route (the locale key) | |
$routeWithoutLang = implode('.', array_slice(explode('.', $route->getName()), 1)); | |
// You should probably put this in a foreach loop |
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
Object.defineProperty(Object.prototype, "setDotNotated", { | |
value: function (dotNotation, value) { | |
var arrayOfNames = dotNotation.split('.'); | |
var last = arrayOfNames.pop(); | |
var tmp = this; | |
for (var i in arrayOfNames) { | |
if (!arrayOfNames.hasOwnProperty(i)) | |
continue; |
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
Object.defineProperty(Object.prototype, "getDotNotated", { | |
value: function (dotNotation) { | |
var arrayOfNames = dotNotation.split('.'); | |
var tmp = this; | |
for (var i in arrayOfNames) { | |
if (arrayOfNames.hasOwnProperty(i)) { | |
tmp = tmp[arrayOfNames[i]]; | |
} | |
} |
NewerOlder