Skip to content

Instantly share code, notes, and snippets.

View alexgarrettsmith's full-sized avatar

Alex Garrett-Smith alexgarrettsmith

View GitHub Profile
<?php
namespace Codecourse\Domain\Invoice;
use Octobat\Invoice;
use Octobat\Customer;
use Octobat\Transaction;
use Braintree\Transaction as BraintreeTransaction;
use Octobat\TaxEvidenceRequest;
use Codecourse\Domain\Users\User;
<template>
<DefaultLayout>
<AppSection
:class="{
'!pb-0': !featured.length
}"
>
<AppSectionHeader
:title="subject.title"
:subtitle="subject.description"
<template>
<div
class="D(f) Ai(c) Pos(f) W(100%) H(100px) Trsp(a) Trsdu(300ms) Trstf(e) Z(9999)"
:class="{
'T(0)': pinned,
'T(-100px)': !pinned,
'Bgc(t)': showingTransparency && atTop,
'Bgc(#141420) Bxsh(headerboxshadow)': !showingTransparency || !atTop
}"
>
<?php
while (true) {
$kernel = new Kernel;
Reminder::get()->each(function ($reminder) use ($kernel, $container) {
$kernel->add(new SendReminder($container->guzzle, $reminder, $container->settings))->cron($reminder->expression);
});
$kernel->run();
<?php
$kernel = new Kernel;
Reminder::get()->each(function ($reminder) use ($kernel, $container) {
$kernel->add(new SendReminder($container->guzzle, $reminder, $container->settings))->cron($reminder->expression);
});
$kernel->run();
<?php
namespace Codecourse\App\Console\Commands;
use Illuminate\Console\Command;
class SchedulerDaemon extends Command
{
/**
* The name and signature of the console command.
web: vendor/bin/heroku-php-apache2 public/
scheduler: php scheduler.php