Skip to content

Instantly share code, notes, and snippets.


Roger Saner BurningDog

View GitHub Profile
View SketchSystems.spec
Visits Hupla Hubspot website -> Consideration
Register on Hupla Hubspot website -> subscriber
Click book button -> Unregistered user
a certain amount of time on the website -> marketingqualifiedlead
visiting a certain page on the website -> marketingqualifiedlead
View SketchSystems.spec
Cruise has space -> Booking
Cruise does not have space -> Delete booking
Proceed to Checkout -> Checkout
Proceed to Payment -> Payment
Checkout timeout -> Cart timeout
BurningDog / ApiMocks.php
Created Oct 20, 2020
Mocking an API in php
View ApiMocks.php
namespace App\Tests\Mocks;
use Exception;
class ApiMocks
protected static $mockResponses = [];
BurningDog / MyLoggerService.php
Created Sep 10, 2020
Symfony 4.4: using a Logger inside a Service
View MyLoggerService.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 / Hi.jpg
Last active Jul 13, 2020 — forked from ryanlucas/Hi.jpg
Image Prototype Demo
View SketchSystems.spec
View 1 available dates -> Cruise booking
Current -> Traveller
Cruise booking&
Hide full itinerary
Itinerary details -> Show full itinerary
Show full itinerary
Itinerary details -> Hide full itinerary
View SketchSystems.spec
View 1 available dates -> API call Get available pricing
Current -> Pick your cabin experience
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: {