Skip to content

Instantly share code, notes, and snippets.

View ahmedofali's full-sized avatar
🤓

Ahmed Ali ahmedofali

🤓
View GitHub Profile
@staltz
staltz / introrx.md
Last active March 4, 2025 04:54
The introduction to Reactive Programming you've been missing
@boneskull
boneskull / bookmarks.md
Last active June 4, 2021 19:39
How to use Mercurial bookmarks

How to Use Mercurial Bookmarks

Note: This document is specific to the FocusVision development environment, however it's mostly applicable elsewhere.

by Christopher Hiller

Mercurial branches are not "cheap". Unlike Git, to create or destroy a branch, you actually have to commit a changeset to the repository. Branches are great for…something…but whatever that is, we're not doing it.

Enter Bookmarks.

@ahmedofali
ahmedofali / PHP_Jargon.md
Last active July 21, 2017 19:00
php specific Important Modules and Jargon Should be know

PHP life Cycle

This is Explanation for the varoius questions about php.

What is php-mod?

mod_php means PHP, as an Apache module. Basically, when loading mod_php as an Apache module, it allows Apache to interpret PHP files (those are interpreted by mod_php).

There are (at least) two ways of running PHP, when working with Apache :

@ahmedofali
ahmedofali / DataMapperTest.php
Last active September 22, 2017 11:55
Data Mapper Design Pattern Complete Example
<?php
namespace DPatterns;
use \DPatterns\PostMemoryStorage;
use \DPatterns\Post;
use \DPatterns\PostMapper;
use \PHPUnit\Framework\TestCase;
class DataMapperTest extends TestCase