Skip to content

Instantly share code, notes, and snippets.

Avatar

Roger Saner BurningDog

View GitHub Profile
View SketchSystems.spec
Awareness
Visits Hupla Hubspot website -> Consideration
Consideration
Register on Hupla Hubspot website -> subscriber
Click book button -> Unregistered user
subscriber
a certain amount of time on the website -> marketingqualifiedlead
visiting a certain page on the website -> marketingqualifiedlead
View SketchSystems.spec
Initial
Cruise has space -> Booking
Cruise does not have space -> Delete booking
Booking
Proceed to Checkout -> Checkout
Checkout
Proceed to Payment -> Payment
Checkout timeout -> Cart timeout
@BurningDog
BurningDog / ApiMocks.php
Created Oct 20, 2020
Mocking an API in php
View ApiMocks.php
<?php
namespace App\Tests\Mocks;
use Exception;
class ApiMocks
{
protected static $mockResponses = [];
@BurningDog
BurningDog / MyLoggerService.php
Created Sep 10, 2020
Symfony 4.4: using a Logger inside a Service
View MyLoggerService.php
<?php
namespace App\Service;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
class MyLoggerService implements LoggerAwareInterface
{
private LoggerInterface $logger;
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@BurningDog
BurningDog / Hi.jpg
Last active Jul 13, 2020 — forked from ryanlucas/Hi.jpg
Image Prototype Demo
View SketchSystems.spec
Cruises
View 1 available dates -> Cruise booking
Current -> Traveller
Cruise booking&
Itinerary
Hide full itinerary
Itinerary details -> Show full itinerary
Show full itinerary
Itinerary details -> Hide full itinerary
View SketchSystems.spec
Cruises
View 1 available dates -> API call Get available pricing
Current -> Pick your cabin experience
API
API call Get available pricing
Success -> Cruise booking
API call POST set pricing
Success -> Traveller
API call calculate cabin price
View machine.js
const fetchMachine = Machine({
id: "root",
states: {
"Say Thanks": {
id: "Say Thanks",
states: {
"View message": {
id: "View message",
states: {},
on: {