$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";
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Animal Class | |
class Animal{ | |
// A class method | |
sayHello(){ | |
console.log('Hello World'); | |
} | |
} | |
// Goat class | |
class Cat extends Animal{ | |
favSport(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal{ | |
sayHello(){ | |
console.log('Hello World'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last Name ❤️ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '' |