Skip to content

Instantly share code, notes, and snippets.

@angebagui
angebagui / wetraject_data.json
Last active September 20, 2022 17:14
wetraject_data.json
{
"crossing_points": [
{
"name":"Immeuble CGK, Cocody, Abidjan, Côte d'Ivoire",
"latitude":4.12939393,
"longitude":-5.322222,
"seat_price":2000,
"currency_code":"XOF"
},
{
"type" : "PICKUP",
"datePickup" : "2022-08-17",
"timePickup" : "09:56",
"vehicleType" : "SCOOTER",
"address" : "Groupe Scolaire Shalom, Rue K70, Agban, Gendarmerie Agban, Cocody, Abidjan, Côte d’Ivoire",
"receiver" : {
"firstname" : "T",
"lastname" : "R",
"phoneNumber" : "+2250584400312",
{
"error": null,
"code": 201,
"message": "Job successfully created.",
"data": {
"job": {
"job_orders": [
{
"order_parcels": [
{
@angebagui
angebagui / test.html
Last active September 8, 2021 20:34
Test CinetPay
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
body {
width: 100%;
@angebagui
angebagui / HowToSetUpApacheVirtualHosts.md
Last active May 5, 2021 12:17
How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS

How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS

Introduction

The Apache web server is the most popular way of serving web content on the internet. It accounts for more than half of all active websites on the internet and is extremely powerful and flexible. Apache breaks its functionality and components into individual units that can be customized and configured independently. The basic unit that describes an individual site or domain is called a virtual host. These designations allow the administrator to use one server to host multiple domains or sites off of a single interface or IP by using a matching mechanism. This is relevant to anyone looking to host more than one site off of a single VPS. Each domain that is configured will direct the visitor to a specific directory holding that site's information, never indicating that the same server is also responsible for other sites. This scheme is expandable without any software limit as long as your server can handle the load. In this guide, we will wal

@angebagui
angebagui / CustomerNotificationUtils.php
Last active May 15, 2020 20:23
CustomerNotificationUtils to push notification in Adjemin
<?php
namespace App\Utils;
use App\Models\Customer;
use App\Models\CustomerDevice;
use App\Models\CustomerNotification;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
@angebagui
angebagui / ContactResult.dart
Last active September 7, 2019 18:20
ContactResult.dart
import 'package:socialapp/model/Contact.dart';
class ContactResult{
bool success;
List<Contact> data;
String message;
ContactResult({this.success, this.data, this.message});
@angebagui
angebagui / gist:e0ffa80222e06404cab6b847db5672ad
Last active June 19, 2019 07:08
request_order_body.json
{
"items":[
{
"service_slug":"restaurant",
"quantity":2,
"cost":"2000.0",
"currency_code":"XOF",
"total_cost":"4000.0",
"meta_data":{
"restaurant_id":-1,
Route::get('/foo', function () {
Artisan::call('storage:link');
});
@angebagui
angebagui / string-utils.js
Created February 8, 2018 14:38 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str){
return str.toLowerCase();