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
/* ************************************* | |
Tower of Hanoi | |
Author:Md.Mostafa kamal | |
Author URI: https://mostafa.itnishi.com/ | |
***************************************/ | |
#include<iostream> | |
using namespace std; |
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
/****************************************************** | |
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; |
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
/****************************************************** | |
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) | |
{ |
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
#include <iostream> | |
#include <map> | |
#include <algorithm> | |
using namespace std; | |
struct Node { | |
int data; | |
Node * next; | |
}; |
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
#include<iostream> | |
using namespace std; | |
struct node | |
{ | |
int data; | |
node *next; | |
}*front = NULL,*rear = NULL,*p = NULL,*np = NULL; | |
void enqueue( int value) |
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
#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); |
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 | |
/** | |
* 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' ); | |
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
<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> |
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> | |
<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') |
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
// 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')) { |
OlderNewer