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 Cego\Facades; | |
class URL extends \Illuminate\Support\Facades\URL | |
{ | |
public static function route($name, $parameters = array(), $absolute = true, $route = null) | |
{ | |
$urlGenerator = static::$app['url']; | |
/* @var \Illuminate\Routing\UrlGenerator $urlGenerator */ | |
$route = $urlGenerator->route($name, $parameters, $absolute, $route); |
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
#sidebar ul.customers::-webkit-scrollbar { | |
width: 5px; | |
} | |
#sidebar ul.customers::-webkit-scrollbar-thumb:vertical { | |
margin: 5px; | |
background-color: #999; | |
-webkit-border-radius: 5px; | |
} |
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
<snippet> | |
<content><![CDATA[ | |
public function ${1:relationship}() | |
{ | |
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table}); | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>belt</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
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 Errors { | |
/** | |
* Create a new Errors instance. | |
*/ | |
constructor() { | |
this.errors = {}; | |
} | |
/** |
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
(function () { | |
// Simply add a data-save-tabs to your tablist e.g. <ul role="tablist" data-save-tabs="your-custom-slug"> | |
$('[data-save-tabs] a[data-toggle="tab"]').on('shown.bs.tab', function (e) { | |
var savedTabs = JSON.parse(localStorage.getItem('savedTabs')); | |
if (typeof savedTabs !== 'object' || !savedTabs){ | |
savedTabs = {}; | |
} | |
savedTabs[$(this).closest('[data-save-tabs]').data('save-tabs')] = $(this).attr('href'); | |
localStorage.setItem('savedTabs', JSON.stringify(savedTabs)); |
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
# PASTE IN YOUR /SIMC INPUT AFTER THIS LINE | |
# Run this in Raidbots Advanced mode: https://www.raidbots.com/simbot/advanced | |
# | |
# Or using a recent nightly build of SimC: https://www.simulationcraft.org/download.html | |
# | |
# The lines below test out 5, 10, 15, and 20 stacks of each Bounty buff to give a sense of what | |
# will provide the most DPS. |
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 Event { | |
constructor() { | |
this.vue = new Vue(); | |
} | |
fire(event, data = null) { | |
this.vue.$emit(event, data); | |
} | |
listen(event, callback) { |
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
/** | |
* Laravel's Arr::dot function for Javascript. | |
* IMPORTANT: Requires lodash installed. | |
*/ | |
function dot(array, prepend) { | |
results = [] | |
prepend = prepend || '' | |
$.each(array, function(key, value) { | |
if ((_.isObject(value) || _.isArray(value)) && ! _.isEmpty(value)) { |
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
<? | |
// | |
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
// | |
// File: twitterFollowerCuratorBot.php | |
// | |
// Created: May 2021 | |
// License: MIT | |
// |
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 x-data="{ bankAccounts: [{ | |
id: '', | |
accountNumber: '' | |
}] }"> | |
<template x-for="(bankAccount, index, bankAccounts) in bankAccounts" :key="index"> | |
<div class="grid grid-cols-6 gap-6 mt-2"> | |
<div class="col-span-3 md:col-span-3 sm:col-span-2"> | |
<x-jet-label for="city">Bank</x-jet-label> | |
<select :name="`bank_info[${index}][bank_id]`" id="bank" | |
class="border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-md shadow-sm mt-1 block w-full"> |
OlderNewer