This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
| 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> |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
| <?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)); |
| $(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); |
| $(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) |