Skip to content

Instantly share code, notes, and snippets.

Avatar
TimeLord

Ashraf Monshi atmonshi

TimeLord
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