Skip to content

Instantly share code, notes, and snippets.

View AsaoluElijah's full-sized avatar

Asaolu Elijah AsaoluElijah

View GitHub Profile
@AsaoluElijah
AsaoluElijah / readtimecount.md
Last active September 26, 2020 23:42
Calculate Reading Time With PHP - Asaolu Elijah

Calculate Text/Article Reading Time With PHP

    $wordsPerMinute = 200; // Set Average Word Per Minute 
    $word = "This is an example of a very long text!";
    $textLength = explode(" ", $word); // Split word by spaces(this will return an array)
    $textLength = sizeof($textLength); // Get the size of the returned array
    $result = $textLength / $wordsPerMinute;
    $result = ceil($result); // Convert result to integer -- If a double value like 2.7 is returened, it will convert it to 3
 echo $result."min";
@AsaoluElijah
AsaoluElijah / README-Template.md
Created December 22, 2019 07:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

// Our Animal Class
class Animal{
// A class method
sayHello(){
console.log('Hello World');
}
}
// Creating a new object
const dog = new Animal;
dog.sayHello(); //Hello World
// Animal Class
class Animal{
// A class method
sayHello(){
console.log('Hello World');
}
}
// Goat class
class Cat extends Animal{
favSport(){
class Animal{
sayHello(){
console.log('Hello World');
}
}
<head>
<meta charset="utf-8">
<meta name="description" content="Example page for stars and clouds background">
<meta name="keywords" content="web design, web programming, web development, web animation, merexcursion, kelly meyers">
<meta name="author" content="Kelly Meyers">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Stars and Clouds Background</title>
@AsaoluElijah
AsaoluElijah / lname.png
Last active June 6, 2019 11:11
Last Name ❤️
Last Name ❤️
@AsaoluElijah
AsaoluElijah / fname.png
Last active June 6, 2019 11:03
First Name ❤️
fname.png
@AsaoluElijah
AsaoluElijah / code.gif
Last active June 4, 2019 13:29
Available for remote gigs 😊
code.gif
@AsaoluElijah
AsaoluElijah / mine_tweets_db.py
Created May 27, 2019 22:56 — forked from nickhargreaves/mine_tweets_db.py
Mine tweets by keyword, date and location boundaries using Python and Tweepy and load into mysql database
import tweepy
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import json
import datetime
import MySQLdb;
consumer_key = ''
consumer_secret = ''