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
var person = { | |
firstName: "Ogunremi", | |
lastName: "Marian", | |
age: 25, | |
maritalStatus: "Married" | |
}; |
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
let str = "He collected the apple"; | |
let regex = /apple/; | |
let result = regex.test(str); | |
console.log(result); |
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
let str = "I gave him the apple"; | |
let regex = /apple/; |
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
command | usage | |
---|---|---|
git init | Creates an empty Git repository in the specified directory. | |
git clone <repository name> | Clones a repository located at <repository name> onto your local machine. | |
git add <directory> | Stages only the specified changes for the next commit. Replace <directory> with a <file> to change a specific file. | |
git add . | Stages new files and modifications without deletions | |
git add -A | Stages all changes | |
git add -all | Equivalent to git add -A | |
git add -u | Stages modifications and deletions without adding new files | |
git add --update | Equivalent to git add -u | |
git commit -m ”<message>” | Commits the staged snapshot. replace <message> with the commit message. |
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
<?php | |
// use the phpmailer we installed via composer | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; | |
require 'vendor/autoload.php'; | |
require 'vendor/phpmailer/phpmailer/src/Exception.php'; | |
require 'vendor/phpmailer/phpmailer/src/PHPMailer.php'; | |
require 'vendor/phpmailer/phpmailer/src/SMTP.php'; | |
if (array_key_exists('to', $_POST)) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Sending Feedback PHPMailer</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
</head> | |
<body> |
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
npm ERR! git clone | |
C:\Users\Larry\AppData\Roaming\npm-cache\_git-remotes\git-github-com-resin-io-bonjour-git-d75da30c | |
C:\Users\Larry\AppData\Local\Temp\npm-6240-db2c6cf4\git-cache-b54bb684\31d080cee1d8a4b74e03818aaee14da8062f0ea1: Cloning into | |
'C:\Users\Larry\AppData\Local\Temp\npm-6240-db2c6cf4\git-cache-b54bb684\31d080cee1d8a4b74e03818aaee14da8062f0ea1'... | |
npm ERR! git clone | |
C:\Users\Larry\AppData\Roaming\npm-cache\_git-remotes\git-github-com-resin-io-bonjour-git-d75da30c | |
C:\Users\Larry\AppData\Local\Temp\npm-6240-db2c6cf4\git-cache-b54bb684\31d080cee1d8a4b74e03818aaee14da8062f0ea1: error: cannot spawn sh: No such file or directory | |
npm ERR! git clone | |
C:\Users\Larry\AppData\Roaming\npm-cache\_git-remotes\git-github-com-resin-io-bonjour-git-d75da30c | |
C:\Users\Larry\AppData\Local\Temp\npm-6240-db2c6cf4\git-cache-b54bb684\31d080cee1d8a4b74e03818aaee14da8062f0ea1: fatal: unable to fork |
NewerOlder