Skip to content

Instantly share code, notes, and snippets.

View Ahmed-Mala's full-sized avatar
🌐
العمل من المنزل

Ahmed Mala Ahmed-Mala

🌐
العمل من المنزل
View GitHub Profile
@Ahmed-Mala
Ahmed-Mala / MySlugHelper.php
Created September 19, 2021 06:52 — forked from mindscms/MySlugHelper.php
Class for maintain Arabic language in cviebrock/eloquent-sluggable
/**
* Setup:
* 1- Create MySlugHelper.php inside app/Helper/MySlugHelper.php
* 2- Edit config/sluggable.php:
* replace line ('method' => null,) with ('method' => [App\Helper\MySlugHelper::class, 'slug'],)
*/
<?php
@Ahmed-Mala
Ahmed-Mala / activity_main.xml
Created August 18, 2016 17:21 — forked from anonymous/activity_main.xml
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>