Skip to content

Instantly share code, notes, and snippets.

View prondubuisi's full-sized avatar
💭
Working Remotely

Onyemenam Ndubuisi prondubuisi

💭
Working Remotely
  • Owerri, Imo. Nigeria.
View GitHub Profile
@prondubuisi
prondubuisi / gist:c246d0f5fee44a1c793dad4064122464
Last active April 5, 2018 16:20
Creating a messenger bot to display Links to English Premiership match highlights

For this week's challenge, we want to include a feature to enable bot users view Match Highlights from the English Premier League.

  • High Level Algorithm

1) Fetch data for Premiership match Highlights from Reddit

2) Sanitize data to get specific Links,Match title for match highlights from the data fetched

3) Pass data to messenger bot and display data using Messenger Carousels with webview buttons

@prondubuisi
prondubuisi / product.blade.php
Created January 23, 2019 05:11
Front end for product search App
<!DOCTYPE html>
<html>
<head>
<title>Product</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
<?php
namespace App\Http\Controllers;
use App\Product as Product;
use Illuminate\Http\Request;
class ProductController extends Controller
{
public function index()
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
<?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
@prondubuisi
prondubuisi / quick-and-dirty-ci-intro.md
Created May 19, 2019 09:02 — forked from totten/quick-and-dirty-ci-intro.md
Quick and Dirty Intro to Civi CI

Quick and Dirty Intro to Civi CI

Background

I find it easiest to consider the stack in three layers:

  • Host Environment or System Platform: Loosely, this is the collection of MySQL, Apache, PHP, NodeJS, and so on. These system-services and language-runtimes are provided in many distribution channels (e.g. Debian, Ubuntu, CentOS, RHEL, nix, MAMP, XAMPP, Bitnami, Docker, etc).
This file has been truncated, but you can view the full file.
Have populated CRM_Core_DAO_File
Have populated CRM_Core_BAO_File
Have populated CRM_Core_DAO_Note
Have populated CRM_Core_BAO_Note
Have populated CRM_Core_DAO_PreferencesDate
Have populated CRM_Core_BAO_PreferencesDate
Have populated CRM_Core_DAO_CustomGroup
Have populated CRM_Core_BAO_CustomGroup
Have populated CRM_Core_DAO_UFField
Have populated CRM_Core_BAO_UFField