Skip to content

Instantly share code, notes, and snippets.

ashraf monshi atmonshi

Block or report user

Report or block atmonshi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@atmonshi
atmonshi / Apple_mobile_device_types.php
Last active Sep 26, 2018 — forked from adamawolf/Apple_mobile_device_types.txt
a PHP function to get matching product names for Apple's mobile device codes types a.k.a. machine ids
View Apple_mobile_device_types.php
function getAppleDeviceName($modle)
{
switch ($modle) {
case "i386" :
return "iPhone Sireturnv mulator";
case "x86_64" :
return "iPhone Sireturn mulator";
case "iPhone1,1" :
return "iPhone";
case "iPhone1,2" :
@atmonshi
atmonshi / GMDColors.php
Last active Dec 10, 2016
A Simple function to return Hex Color Code base on google material design colors , thanks to https://github.com/danlevan/google-material-color . to see all colors check https://material.google.com/style/color.html#color-color-palette.
View GMDColors.php
/**
* A Simple function to return Hex Color Code base on google material design colors
*
* thanks to https://github.com/danlevan/google-material-color
*
* to see all colors : https://material.google.com/style/color.html#color-color-palette .
* check the code for the White and Black , there is more Options
*
* @param string $color the color name , just replace any spaces with _ as : Deep Purple => Deep_Purple
* @param string $accent the accent of the color you want like 900 or A700 . default is 500
You can’t perform that action at this time.