This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace Personly\Http\Traits; | |
use Personly\Framework\Rendering\TemplateRenderer; | |
use Symfony\Component\HttpFoundation\{JsonResponse, Response}; | |
trait RendersTemplates |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace YourApp\Infrastructure\Logging; | |
use Psr\Log\{LoggerInterface, LoggerTrait}; | |
class SlowQueryLogDecorator implements LoggerInterface | |
{ | |
use LoggerTrait; |
This file contains hidden or 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
// Data Source: https://nukaknights.com/articles/legendary-mods-all-descriptions-and-usages.html | |
const modWrapperSelector = '.mod_fallout76rewards_legendarymods'; | |
const modData = []; | |
const containers = $(modWrapperSelector); | |
getRankFromRow = function(row) { | |
let parent = $(row).parents(modWrapperSelector)[0]; | |
for (let index = 0; index < containers.length; index++) { | |
if (containers[index] == parent) { | |
return index+1; |
OlderNewer