Skip to content

Instantly share code, notes, and snippets.

View aamahi's full-sized avatar
🎯
Focusing

Abdullah Al Mahi aamahi

🎯
Focusing
View GitHub Profile
@aamahi
aamahi / RubayatAssignment.cpp
Created May 26, 2023 18:39
Rubayat Assignment
#include <iostream>
#include <vector>
#include <algorithm>
#include <ctime>
void bubbleSort(std::vector<int>& arr) {
int n = arr.size();
for (int i = 0; i < n - 1; ++i) {
for (int j = 0; j < n - i - 1; ++j) {
if (arr[j] > arr[j + 1]) {
@aamahi
aamahi / Sending e-mail with attachments using PHP
Last active September 21, 2019 21:21
PHP - sending e-mail attachments.php
<?php
$to = "yourmail@gmail.com";
$from="mans@example.com";
$subject = "Web Application Develoaper\n";
$mainMessage ="Softwear Engineer\r\n";
$fileName="./mahi.pdf";
$fileNewName ="cv.pdf";
$fileData = file_get_contents($filename);
$boundary = "Hear is Boundary";