Skip to content

Instantly share code, notes, and snippets.

View akramabdulrahman's full-sized avatar

akram abdelrahman akramabdulrahman

View GitHub Profile
@akramabdulrahman
akramabdulrahman / 00_README.md
Created February 7, 2022 01:27 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@akramabdulrahman
akramabdulrahman / index.php
Last active June 19, 2017 11:59
possible di implmentation
<?php
require '../vendor/autoload.php';
class B
{
public $name = 'akram';
}
class A
{
@akramabdulrahman
akramabdulrahman / index.php
Last active June 18, 2017 20:07
abu sofian challenge
<?php
require '../vendor/autoload.php';
use Carbon\Carbon;
const DATE_FORMAT = 'd/m/Y';
const TIME_FORMAT = 'H:i:s';
Carbon::setWeekStartsAt(Carbon::SATURDAY);
@akramabdulrahman
akramabdulrahman / ajax_intercepter
Created August 27, 2012 00:30 — forked from creotiv/ajax_intercepter
Ajax Intercepter
<html>
<body>
<script>
var xml_type;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest && !(window.ActiveXObject)) {