Skip to content

Instantly share code, notes, and snippets.

View snaquaye's full-sized avatar

Samson Quaye snaquaye

View GitHub Profile
@snaquaye
snaquaye / machine.js
Last active September 19, 2020 22:37
Generated by XState Viz: https://xstate.js.org/viz
const nextStep = assign({
currentStep: (ctx, _event) => Math.min(3, ctx.currentStep + 1)
});
const prevStep = assign({
currentStep: (ctx, _event) => Math.max(0, ctx.currentStep - 1)
});
const isLastStep = (ctx, _event) => {
return ctx.lastStep === ctx.currentStep;
@snaquaye
snaquaye / README.md
Created March 3, 2016 23:43
List of-Registered-Fishermen-in-Edo-State-Aggregated-by-Community

README is empty

@snaquaye
snaquaye / data.php
Last active June 11, 2024 22:26 — forked from jjb3rd/data.php
An updated server-side processing script for DataTables
<?php
/*
* Script: DataTables server-side script for PHP and MySQL
* Copyright: 2012 - John Becker, Beckersoft, Inc.
* Copyright: 2010 - Allan Jardine
* License: GPL v2 or BSD (3-point)
*/
namespace Common\Utilities;
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)