Skip to content

Instantly share code, notes, and snippets.

View abouolia's full-sized avatar
🤠

Ahmed Bouhuolia abouolia

🤠
View GitHub Profile
@abouolia
abouolia / gist:1cee66b9cf1b6ed0480a
Last active December 17, 2015 00:29
Second Degreee Quation
<?php
function Seconddegreeequation( $a, $b, $c, $g=null){
if ( $g == 1 || $g == true){
$val = (-1 * $b) + sqrt(pow($b, 2) - 4*$a*$c);
}else{
$val = (-1 * $b) - sqrt(pow($b, 2) - 4*$a*$c);
}
@abouolia
abouolia / index.html
Created May 29, 2013 23:54
Experience naming IDs or Classes in language Arabic.
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
<style type="text/css">
#احمد{
background: red;
height: 100px;
width: 100px;
<?php
// Nav Menu Dropdown Class
include_once( CHILD_DIR . '/lib/classes/nav-menu-dropdown.php' );
/**
* Mobile Menu
*
*/
function be_mobile_menu() {
@abouolia
abouolia / gist:aea1f0b93e5056e08422
Last active August 29, 2015 14:02
Detrimental of center trig and sub trig of any matrix
#include<stdio.h>
//Created By Ahmed Bouhuolia
main(){
int i, j, n, m, matrix[256][256], sum;
printf("Enter the number of rows and columns of the matrix ");
scanf("%d %d", &n, &m);
printf("Enter the elements of the matrix %d*%d ", n, m);
@abouolia
abouolia / gist:c40e5b4aa8b942a36db0
Last active August 29, 2015 14:02
Transport the matrix 4*2
#include<stdio.h>
#include<string.h>
//Created By Ahmed Bouhuolia
main(){
int n, m, i, j, matrix[256][256], transport[256][256];
printf("Enter the number of rows and columns of the matrix ");
scanf("%d %d", &n, &m);
@abouolia
abouolia / gist:a50603b3d94dd4060e1a
Last active August 29, 2015 14:02
Upper/Lower Case in C
#include<stdio.h>
#include<string.h>
#include<ctype.h>
char *uppercase( char str[256] );
char *lowercase( char str[256] );
main(){
char str[256] = "";
@abouolia
abouolia / Movies
Last active February 7, 2018 14:05
Watched Movies
## WATCHED
=================================
12 year a slave
A beautiful mind
About time
A million ways to die in the west 2014
Breath in
Begin Again 2013
Captain phillips
Chef
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
/**
* Sort Recent Posts Widget.
*
* @since PostVision 0.1.0
* @package PostVision
* @subpackage Sort Recent Posts Widget / PostVision Widgets
* @author Ahmed Bouhuolia <a.bouhuolia@gmail.com>
* @copyright Copyright (c) 2015, Customattic.
<?php
$count = 100;
for($i = 1; $i <= $count; $i++){
if( $i % 5 === 0 && $i % 3 === 0 ){
echo 'Fizz-Buzz ';
} else if( $i % 3 === 0 ){
echo 'Fizz ';
@abouolia
abouolia / vc-full-row-rtl.php
Last active July 9, 2018 08:09
Fix: Visual Composer full width row with RTL.
<?php
/**
* This function fixes full width row of Visual Composer plugin with RTL view.
*
* IMPORTANT NOTE: You should add this script after jquery.js and before js_composer_front.js
*
* @return void
*/
function website_vc_full_width_rtl_inline_script(){