This file contains hidden or 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 | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME'); | |
| define('MAILGUN_KEY', 'KEY'); | |
| function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
| $array_data = array( | |
| 'from'=> $mailfromname .'<'.$mailfrom.'>', | |
| 'to'=>$toname.'<'.$to.'>', | |
| 'subject'=>$subject, | |
| 'html'=>$html, |
This file contains hidden or 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
| FROM php:8.1.4-cli | |
| # Install Git | |
| RUN apt-get update && apt-get install -y git | |
| # Install PHP extensions | |
| RUN apt-get update && apt-get install -y \ | |
| zlib1g-dev \ | |
| libzip-dev | |
| RUN docker-php-ext-install zip |
This file contains hidden or 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 18 hrs 1 min βββββββββββββββββββββ 81.7% | |
| JavaScript 1 hr 19 mins βββββββββββββββββββββ 6.0% | |
| Vue.js 47 mins βββββββββββββββββββββ 3.6% | |
| JSON 33 mins βββββββββββββββββββββ 2.6% | |
| Other 32 mins βββββββββββββββββββββ 2.5% |
This file contains hidden or 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
| // Array = [3,5,-4,8,11,1,-1,6] | |
| // target= 10 | |
| // Answer = [11,-1] | |
| const array = [3,5,-4,8,11,1,-1,6]; | |
| const target = 10; | |
| // 1 st solution: 2 for loop. | |
| // time: O(N^2) | |
| // space: O(1) | |
| const firstSolTwoArraySum = (array, target) => { |