Skip to content

Instantly share code, notes, and snippets.

View amjarmed's full-sized avatar
🏡
working from home

Mohamed Amjar amjarmed

🏡
working from home
View GitHub Profile
@amjarmed
amjarmed / LocaleHelper.java
Created February 6, 2020 23:11 — forked from gunhansancar/LocaleHelper.java
While developing your awesome application, sometimes you are required to add a language change feature to your app on the fly. However, Android OS does not directly support this behaviour. And therefore, you need to solve this situation in some other ways. For more details see http://gunhansancar.com/change-language-programmatically-in-android/
package com.gunhansancar.changelanguageexample.helper;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Build;
import android.preference.PreferenceManager;
@amjarmed
amjarmed / npmCommands.sh
Created February 6, 2020 21:31
a sample file contain some npm commands
#How to list npm user-installed packages?
npm list -g --depth=0