Skip to content

Instantly share code, notes, and snippets.

View AhmedAlAhmed's full-sized avatar

Ahmed Al-Ahmed AhmedAlAhmed

  • Baanx Group Ltd
  • London, UK
View GitHub Profile
// Online C++ compiler to run C++ program online
#include <iostream>
#include <map>
using namespace std;
int main() {
// Array of numbers
int array[] = {1,2,4,2,1,7,3,2,6,2,1,2,1,6,3,3,1,2};
int count = sizeof(array)/sizeof(array[0]);
@AhmedAlAhmed
AhmedAlAhmed / postgres.md
Created September 19, 2022 09:49 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql

Run server:

interface Reptile
{
public function layEgg(): ReptileEgg;
}
class FireDragon implements Reptile
{
public function layEgg(): ReptileEgg
{
[1] curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
[2] sudo chown -R $USER ~/.composer/
[3] composer global require "laravel/installer"
[4] echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc
[5] source ~/.bashrc
@AhmedAlAhmed
AhmedAlAhmed / countries.php
Created November 8, 2018 10:07 — forked from josephilipraja/countries.php
List of Countries with Country code & Telephone (Dial) Code as a PHP Array. Bonus: PHP function to list all Countries as HTML Select Tag Options with their 2 character Country code as values
<?php
$countryArray = array(
'AD'=>array('name'=>'ANDORRA','code'=>'376'),
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'),
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'),
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'),
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'),
'AL'=>array('name'=>'ALBANIA','code'=>'355'),
'AM'=>array('name'=>'ARMENIA','code'=>'374'),
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'),
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
@AhmedAlAhmed
AhmedAlAhmed / success.php
Created June 12, 2018 08:01
Marquise Seccuss page.
<?php
include '../autoload.php';
$gameOBJ = new Game();
$game = $gameOBJ->getCurrent();
$clientOBJ = new Client();
$client = $clientOBJ->get_instance();
?>
<html>
0.1393714315591552
0.06223205443566826
0.9084364350092695
0.4134315847960668
0.3301339811911834
0.05358300386907722
0.2341962260495709
0.4674048178006238
0.6346721403315136
1.3677115201578953
# Required libs to do some mathematical operations ( cos, PI, fabs ... )
from random import uniform
import math
# Required [ if we want to draw the fitness values ], we have to remove it and
# every line prefixed with plt word.
import matplotlib.pyplot as plt
# generate random Individual [ float number between -5.12 and 5.12 ]
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
TextView textview;