Skip to content

Instantly share code, notes, and snippets.

View abouolia's full-sized avatar
🤠

Ahmed Bouhuolia abouolia

🤠
View GitHub Profile
@abouolia
abouolia / gist:03e1727e5bc296b228788a57f7ad8eb3
Last active May 4, 2022 11:55
Running HavenoClient tests.
Redocumenting the steps to run haveno-ts tests. All these steps are required.
ENVIRONMENT PREPARATION.
-------------
1. Install. these dependencies on your machine `make wget git git-lfs openjdk-11-jdk`, if you ware on Mac just install the `openjdk-11-jdk`.
2. Download `protoc-gen-grpc-web plugin` and make executable as [shown here](https://github.com/grpc/grpc-web#code-generator-plugin).
3. Install `protobuf` compiler v3.19.1 or later for your system:
- mac: `brew install protobuf`
- linux: apt install protobuf-compiler NOTE: You may need to upgrade to v3.19.1 manually if your package manager installs an older version.
@abouolia
abouolia / index.json
Created June 6, 2021 10:28
Bifcapital
{
"hello_world": "Hello World",
"email_or_phone_number": "Email or phone number",
"password": "Password",
"login": "Login",
"invalid_email_or_phone_number": "Invalid email or phone number.",
"required": "Required",
"reset_password": "Reset Password",
"the_user_has_been_suspended_from_admin": "The user has been suspended from the administrator.",
"email_and_password_entered_did_not_match": "The email and password you entered did not match our records.",
@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(){
[
"قمينس",
"سيدي خليفة",
"الظهرة -تنيناي الوادي",
"اشميخ",
"الظهرة",
"التنية البيضاء",
"البلدية",
"سوف الجين",
"أبو راس",
@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
$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 ';
<?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
// 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 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;
@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);
}