Skip to content

Instantly share code, notes, and snippets.

View mostafa6765's full-sized avatar
👨‍💻
code

Mostafa Kamal mostafa6765

👨‍💻
code
View GitHub Profile
/* *************************************
Tower of Hanoi
Author:Md.Mostafa kamal
Author URI: https://mostafa.itnishi.com/
***************************************/
#include<iostream>
using namespace std;
@mostafa6765
mostafa6765 / queue.cpp
Last active April 17, 2021 23:27
Enqueue,Dequeue,Display c++ cpp
/******************************************************
QUEUE C++
AUTHOR URI:https://mostafa.itnishi.com
******************************************************/
#include<iostream>
#include<conio.h>
#include<stdlib.h>
#define SIZE 5
using namespace std;
int q[SIZE],front=0,rear=0;
@mostafa6765
mostafa6765 / stacks.cpp
Last active September 29, 2019 09:38
push ,pop ,display with array c++ cpp
/******************************************************
QUEUE C++
AUTHOR URI:https://mostafa.itnishi.com
******************************************************/
#include<iostream>
#include<conio.h>
using namespace std;
int top=-1, z[5];
void push(int value)
{
@mostafa6765
mostafa6765 / linkedlist.cpp
Created October 26, 2016 02:37
linked list all cpp
#include <iostream>
#include <map>
#include <algorithm>
using namespace std;
struct Node {
int data;
Node * next;
};
@mostafa6765
mostafa6765 / enqueDequeueWithLinkedList.cpp
Last active November 12, 2016 15:00
Enqueue ,Dequeue ,Display with linked list
#include<iostream>
using namespace std;
struct node
{
int data;
node *next;
}*front = NULL,*rear = NULL,*p = NULL,*np = NULL;
void enqueue( int value)
@mostafa6765
mostafa6765 / infixToPostFix.cpp
Created November 12, 2016 19:12
Infix to Postfix c++/c plus plus
#include<iostream>
#include<stack>//import Stack STL
#include<string>//import String STL
#include<conio.h>
using namespace std;
string infixToPostfix(string expr); //Function declaration
int precendence(char arg);
bool isoperand(char arg);
bool isoperator(char arg);
@mostafa6765
mostafa6765 / add_css_js.php
Last active November 29, 2016 23:45
Wordpress Theme basic
<?php
/**
* Proper way to enqueue scripts and styles
*/
function wp_friend_scripts() {
wp_enqueue_style( 'style-name', get_stylesheet_uri() . '/css/main_style.css', array(),'',false );
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'wp_friend_scripts' );
<mjml>
<mj-body>
<mj-container background-color="linear-gradient(to left, #2C3E50 , #FD746C)">
<mj-section background-color="#2f68b4" padding-bottom="1" padding-top="2">
<mj-column>
<mj-image href="https://mjml.io" src="http://www.notification-emails.com/wp-content/themes/notification-emails/template_showcase/simpleapp//theme-1.png" alt="Racoon logo" align="center" padding-bottom="10" padding-top="5">
</mj-image>
</mj-column>
</mj-section>
@mostafa6765
mostafa6765 / expanding-textarea.htm
Created March 9, 2017 23:39 — forked from Burgestrand/expanding-textarea.htm
A self-expanding textarea similar to Facebook’s implementation
<!DOCTYPE html>
<html>
<head>
<title>Self-expanding textarea</title>
</head>
<body>
<textarea id="expand" rows="8" cols="40"></textarea>
<script type="text/javascript" charset="utf-8">
var textarea = document.getElementById('expand')
var div = document.createElement('div')
// composer require filp/whoops
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {