Skip to content

Instantly share code, notes, and snippets.

😁
Available

Ahmed Bouhuolia abouolia

😁
Available
View GitHub Profile
View libya_areas.json
[
"قمينس",
"سيدي خليفة",
"الظهرة -تنيناي الوادي",
"اشميخ",
"الظهرة",
"التنية البيضاء",
"البلدية",
"سوف الجين",
"أبو راس",
@abouolia
abouolia / vc-full-row-rtl.php
Last active Jul 9, 2018
Fix: Visual Composer full width row with RTL.
View vc-full-row-rtl.php
<?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(){
View gist:d0c9f7d39051be97e4fe4c992360e55c
<?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 ';
View Sort Posts Widget
<?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.
@abouolia
abouolia / Movies
Last active Feb 7, 2018
Watched Movies
View 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
@abouolia
abouolia / gist:a50603b3d94dd4060e1a
Last active Aug 29, 2015
Upper/Lower Case in C
View gist:a50603b3d94dd4060e1a
#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 / gist:c40e5b4aa8b942a36db0
Last active Aug 29, 2015
Transport the matrix 4*2
View gist:c40e5b4aa8b942a36db0
#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:aea1f0b93e5056e08422
Last active Aug 29, 2015
Detrimental of center trig and sub trig of any matrix
View gist:aea1f0b93e5056e08422
#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);
View functions.php
<?php
// Nav Menu Dropdown Class
include_once( CHILD_DIR . '/lib/classes/nav-menu-dropdown.php' );
/**
* Mobile Menu
*
*/
function be_mobile_menu() {
@abouolia
abouolia / index.html
Created May 29, 2013
Experience naming IDs or Classes in language Arabic.
View index.html
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
<style type="text/css">
#احمد{
background: red;
height: 100px;
width: 100px;
You can’t perform that action at this time.