Skip to content

Instantly share code, notes, and snippets.

On vacation


On vacation
Block or report user

Report or block amolood

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
amolood /
Created Mar 19, 2017 — forked from artem-zinnatullin/
If you need to set one font for all TextViews in android application you can use this solution. It will override ALL TextView's typefaces, includes action bar and other standard components, but EditText's password font won't be overriden.
public class MyApp extends Application {
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
amolood / arabic-date-format.php
Created Aug 29, 2016 — forked from AmrMekkawy/arabic-date-format.php
A PHP function to format Arabic date to be user friendly and more readable (Twitter Like)
View arabic-date-format.php
function arabic_date_format($timestamp)
$periods = array(
"second" => "ثانية",
"seconds" => "ثواني",
"minute" => "دقيقة",
"minutes" => "دقائق",
"hour" => "ساعة",
amolood / arabic_numerals.php
Created Aug 29, 2016 — forked from kadimi/arabic_numerals.php
Convert numbers in Arabic
View arabic_numerals.php
* Converts numbers in string from western to eastern Arabic numerals.
* @param string $str Arbitrary text
* @return string Text with western Arabic numerals converted into eastern Arabic numerals.
function arabic_w2e($str) {
$arabic_eastern = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩');
amolood / arabic-country-dropdown-list.html
Created Aug 29, 2016 — forked from AmrMekkawy/arabic-country-dropdown-list.html
Arabic countries HTML "select" element (dropdown list)
View arabic-country-dropdown-list.html
<!-- Country List in Arabic | source: -- >
<select name="country">
<option value="AW">آروبا</option>
<option value="AZ">أذربيجان</option>
<option value="AM">أرمينيا</option>
<option value="ES">أسبانيا</option>
<option value="AU">أستراليا</option>
<option value="AF">أفغانستان</option>
<option value="AL">ألبانيا</option>
<option value="DE">ألمانيا</option>
You can’t perform that action at this time.