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
public function pegarValidadeDiaUtil($dias = 30, $finaisDeSemana = [0, 6]): Carbon | |
{ | |
$agora = now(); | |
$anoInicial = $agora->year; | |
$numFinaisDeSemanaParaPular = 0; | |
for ($i = 0; $i < $dias; $i++) { | |
$agora->addDays(); | |
if (in_array($agora->weekday(), $finaisDeSemana)) { | |
$numFinaisDeSemanaParaPular++; | |
} |
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
// ==UserScript== | |
// @name Dias Atividade | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adiciona indicador de dias para conclusão da atividade | |
// @author Marcus Duarte<[email protected]> | |
// @match https://colaboraread.com.br/aluno/timeline/index/* | |
// @icon https://www.google.com/s2/favicons?domain=colaboraread.com.br | |
// @grant none | |
// ==/UserScript== |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Contracts\Database\Eloquent\Builder; | |
use Illuminate\Contracts\Pagination\LengthAwarePaginator; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Routing\Controller as BaseController; |
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 | |
namespace App\Console\Commands; | |
use Anik\Amqp\ConsumableMessage; | |
use Anik\Amqp\Exceptions\AmqpException; | |
use Anik\Amqp\Queues\Queue; | |
use Anik\Laravel\Amqp\Facades\Amqp; | |
use App\Models\Device; | |
use App\Models\DeviceVehicle; |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
class MfaValidatorInput extends StatefulWidget { | |
const MfaValidatorInput({ | |
super.key, | |
required this.length, | |
this.onCompleted, | |
this.onChanged, | |
this.focusNode, |
OlderNewer