Skip to content

Instantly share code, notes, and snippets.

View MR-D05's full-sized avatar

Benjamin James Broadstone MR-D05

View GitHub Profile
public IEnumerable<RefinanceSolutionV3> MapToRefinanceSolutionsV3(string desiredGoal, PapiResponse response)
{
List<RefinanceSolutionV3> refinanceSolutions = new List<RefinanceSolutionV3>();
foreach (var product in response.Products.OrderBy(x => x.RecommendationPriority))
{
var pricingOptions = product.PricingOptions?.ToList();
if (pricingOptions == null)
continue;
<a
sprkLink
(click)="updateRateSheetUrl()"
href="{{ todaysRatesheet.url }}"
target="_self"
download="RateSheet.pdf"
>
<span>View</span
</a>
<?php
// PHP code to check whether a number is prime or Not
// function to check the number is Prime or Not
function primeCheck($number): int
{
if ($number == 1)
return 0;
for ($i = 2; $i <= sqrt($number); $i++) {
<?php
declare(strict_types=1);
namespace App\Jobs\Outbound;
use App\Jobs\Middleware\RateLimited;
use App\Models\EmailSchedule;
use App\Models\Issue;
use App\Repositories\EmailServices\BisonEmailService;
/**
* @test
*/
public function it_will_dispatch()
{
$this->mock(PushEmailToBison::class, function (MockInterface $mock) {
$outbound = Service::factory()->create([
'name' => 'Outbound',
])->first()->toArray();
<?php
declare(strict_types=1);
namespace App\Jobs;
use App\Models\JobIndustry;
use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
<?php
declare(strict_types=1);
namespace Unit\Jobs;
use App\Jobs\ContactsSyncIndustries;
use App\Models\JobIndustry;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
<?php
declare(strict_types=1);
namespace App\Console\Commands\Contacts;
use App\Jobs\Contacts\ContactsSyncIndustries;
use GuzzleHttp\Client;
use Illuminate\Console\Command;
<template>
<div class="search-contacts">
<div class="alert alert-danger" style="display: none;" v-show="!this.APIStatus">
<h3>Connection Error</h3>
<p>There is currently a connection error with the Contact API, please try again later.</p>
</div>
<form class="mb-5" @submit.prevent="onboardContacts">
<div class="form-row">
<div class="form-group col-6">
<date-range-picker @update-date="updateDates" date-format="yyyy-mm-dd" v-once></date-range-picker>
POST /api/v1/save-and-schedule HTTP/1.1
Host: onboard.bisnow.test:3115
Connection: keep-alive
Accept: application/json, text/plain, */*
X-XSRF-TOKEN: eyJpdiI6IlwvNFpLTGlSY2hwT3I4Wm9iekNlanBnPT0iLCJ2YWx1ZSI6ImVlaWpuR21jdHhDY0ZQMm1hU29pV1RqaGYzeGJIZWppdkFjQm0rckl6RUdiZlkrOWJlenVrNmk2QmVjZXpxdDUiLCJtYWMiOiJiZTlmNGU1NjQyYmE4NTQ1ODljN2ZiNzcyZDZiMTgxNTJmMDQxNTdmNjM3NzExZTdiOTRmYjJkMWUzM2MzNjM3In0=
X-CSRF-TOKEN: 5GULr4Dty4zfkRLPLSQ5UCH6wbMhforRVBmnHq1D
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: http://localhost:3106