Skip to content

Instantly share code, notes, and snippets.

View Chibuokem's full-sized avatar

Chibuokem Ibezim Chibuokem

View GitHub Profile
cron.schedule('* * * * *', () => {
// Create an API call to query payments involving the account.
var payments = recievingServer.payments().forAccount(recievingAccountId);
// If some payments have already been handled, start the results from the
// last seen payment. (See below in `handlePayment` where it gets saved.)
var lastToken = loadLastPagingToken();
if (lastToken) {
payments.cursor(lastToken);
@Chibuokem
Chibuokem / Response.php
Created July 16, 2020 18:53 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@Chibuokem
Chibuokem / review.php
Last active May 20, 2020 05:37
Reviews values implementation
//this part is what happened inside the model where the values where defined
public function reviewValues()
{
//this is to return the review parameters
//the review value key links the rest of the array values
$cleanliness = array('Crispy clean' => 3, 'Clean' => 2, 'Dirty' => 1);
$attitude = array('Excellent' => 3, 'Good' => 2, 'Bad' => 1);
$wait_time = array('Less than 30 mins' => 3, '30 mins - 1 hour' => 2, 'Beyond' => 1);
$diagnosis = array('Excellent' => 3, 'Good' => 2, 'Bad' => 1);
$captions = array('Cleanliness' => 'How clean was the enviroment of the health care provider?', 'Attitude' => 'How where you treated by staff of the health care provider?', 'Wait time' => 'How long did you wait to see a doctor?', 'Diagnosis' => 'How well did you understand what was wrong with you and the treatment plans?');