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(){
<?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.
@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
@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 / 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: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);