The script's managers are Greasemonkey or Tampermonkey. Just add it to your browser.
The script's hosting gist.github.com. Just click it.
The script use Google Fonts Hosting. Use a font name from there.
The script's managers are Greasemonkey or Tampermonkey. Just add it to your browser.
The script's hosting gist.github.com. Just click it.
The script use Google Fonts Hosting. Use a font name from there.
| sudo add-apt-repository ppa:ondrej/php -y | |
| sudo apt-get update -y | |
| sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y | |
| sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
| sudo apt-get remove libapache2-mod-php5 -y | |
| sudo apt-get install libapache2-mod-php7.1 -y | |
| sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars |
| # the instructions from here: https://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu/31089915#31089915 | |
| # worked, but only after I added in line 8 | |
| sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat | |
| sudo apt-get autoremove | |
| sudo apt-get install imagemagick libmagickwand-dev | |
| sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config | |
| export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig | |
| gem install rmagick |
| object MyService { | |
| private val TIMEOUTOFSECOND = 12 | |
| private val _instanceOfService: Service by lazy { setupHttpClient() } | |
| fun on(): Service { | |
| return _instanceOfService | |
| } |
| interface Service { | |
| @FormUrlEncoded | |
| @POST("info/getInfoDetail") | |
| fun GetInfoDetail(@FieldMap params: HashMap<String, Any>): Call<InfoDetailObject> | |
| @GET("search/{search_word}") | |
| fun getSuggestSearchWords(@Path("search_word") search_word: String): Call<SearchWorObject> |
| inline fun <reified T : kotlin.Enum<T>> safeEnumValueOf(type: String?,defaultEnum:T): T { | |
| return try { | |
| java.lang.Enum.valueOf(T::class.java, type) | |
| } catch (e: Exception) { | |
| defaultEnum | |
| } | |
| } |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) | |
| } |
| MutableLiveData Example |
|---|
![]() |