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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Select image from media gallery</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> | |
| <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
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
| <div id="map" style="width:70%;height:500px;"></div> | |
| <h5>Tolarbag Mosque Road, Dhaka, Dhaka Division, Bangladesh</h5> | |
| <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
| <script> | |
| var geocoder = new google.maps.Geocoder(); // initialize google map object | |
| var address = "Tolarbag Mosque Road, Dhaka, Dhaka Division, Bangladesh"; | |
| geocoder.geocode( { 'address': address}, function(results, status) { | |
| if (status == google.maps.GeocoderStatus.OK) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Place Autocomplete Address Form</title> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| margin: 0; |
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
| <!DOCTYPE html> | |
| <html lang="en" manifest="offline.php"> | |
| <head> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" /> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"/> | |
| <link rel="stylesheet" href="styles.css"/> | |
| </head> | |
| <body> | |
| <div class="container"> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script> | |
| function printContent(el){ | |
| var restorepage = document.body.innerHTML; | |
| var printcontent = document.getElementById(el).innerHTML; | |
| document.body.innerHTML = printcontent; | |
| window.print(); | |
| document.body.innerHTML = restorepage; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Desktop notification</title> | |
| <script type="text/javascript"> | |
| var articles = [ | |
| ["Md. Mahedi Azad","Programmer and Web Developer","http://mahediazad.me"], | |
| ["Md. Mahedi Azad","Programmer and Web Developer","http://mahediazad.me"], | |
| ["Md. Mahedi Azad","Programmer and Web Developer","http://mahediazad.me"], |
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
| ###Query | |
| select * from | |
| ( select temp_table.*, ROWNUM rnum from | |
| ( <your_query_goes_here, with order by> ) temp_table | |
| where ROWNUM <= :MAX_ROW_TO_FETCH ) | |
| where rnum >= :MIN_ROW_TO_FETCH; | |
| ###Instruction | |
| :MAX_ROW_TO_FETCH is the maximum limit of row that be displayed |
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 | |
| /** | |
| * Password policy | |
| * | |
| * Created by Mahedi Azad. | |
| * User: Mahedi Azad | |
| * Date: 01-Oct-15 | |
| * Time: 9:45 AM | |
| */ |
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 | |
| //add to composer.json "phpmailer/phpmailer": "~5.2" | |
| require_once 'vendor/autoload.php'; | |
| $mail = new PHPMailer(); | |
| $mail->IsSMTP(); | |
| $mail->Mailer = 'smtp'; | |
| $mail->SMTPAuth = true; | |
| $mail->Host = 'smtp.gmail.com'; // "ssl://smtp.gmail.com" didn't worked |
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 | |
| /* | |
| go=1 (hidden) | |
| hp='value from textbox' | |
| message='value from texarea' | |
| c='captcha image' | |
| */ | |
| /**Data generation**/ | |
| $vars = array( |