Skip to content

Instantly share code, notes, and snippets.

View djoudi's full-sized avatar
🌍
Remotely Work

Abdelouahab Djoudi djoudi

🌍
Remotely Work
View GitHub Profile
Run as sudo:
sudo -i
Update server:
yum update -y
aapanel install command:
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
//5! = 5*4*3*2*1
int x,i;
double result;
do{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
// char name[15] = "Ecoin"; //
//char name2[] = "Hi how are you";
//scanf("please Enter you msg :%s",name);
<?php
include 'inc/header.php';
require 'inc/config.php';
require 'inc/functions.php';
$data = allCat();
?>
<div class="table-responsive">
<table class="table table-darktable-borderless table-hover">
<caption>List of Category</caption>
@djoudi
djoudi / gist:56850d078f777501886e1e79317d3561
Created January 23, 2021 21:40 — forked from mikehaertl/gist:3258427
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
@djoudi
djoudi / action.php
Last active December 24, 2020 10:07
<?php
require_once 'inc/config.php';
$q = (isset($_GET['nom']))?$_GET['nom']:null;
$sql = "SELECT * FROM clients WHERE nom LIKE '%$q%'";
$res = mysqli_query($connect,$sql) or die(mysqli_error($res));
@djoudi
djoudi / app.js
Last active December 20, 2020 10:33
$(document).ready(function() {
// Start Click #btn
$("body").on('click', '#btn', function(event) {
event.preventDefault();
//alert('test')
/* let nom = $('#nom').val()
let prenom = $('#prenom').val()
let email = $('#email').val()
let tel = $('#tel').val()
let w = $('#wilaya_id').val()*/
<?php
require_once 'inc/header.php';
require_once 'inc/config.php';
require_once 'inc/function.php';
// Get all Wilaya
/****************************************************/
$sqlw = "SELECT * FROM wilaya";
$resw = mysqli_query($connect,$sqlw);
<?php
require_once 'inc/header.php';
require_once 'inc/config.php';
require_once 'inc/function.php';
// Get all Wilaya
/****************************************************/
$sqlw = "SELECT * FROM wilaya";
$resw = mysqli_query($connect,$sqlw);
@djoudi
djoudi / app.js
Last active December 3, 2020 10:25
$(document).ready(function() {
var count
console.log(localStorage.key(1));
count = (localStorage.key(1)=='cpt')?localStorage.getItem('cpt'):0
$('.addtocard').text(localStorage.getItem('cpt'))
$(document).on('click', '.cart', function(event) {
event.preventDefault();
count++
localStorage.setItem('cpt', count)