###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.net.Uri; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import android.util.Log; | |
| import com.squareup.picasso.MemoryPolicy; | |
| import com.squareup.picasso.Picasso; | |
| import com.squareup.picasso.RequestCreator; |
| interface ILib { | |
| alpha: string[], | |
| number: string[], | |
| symbols: string[] | |
| } | |
| type Key = keyof ILib; | |
| const lib : ILib = { | |
| alpha: [ |
| public class XmlOrJsonConverterFactory extends Converter.Factory { | |
| final Converter.Factory xml = SimpleXmlConverterFactory.create(); | |
| final Converter.Factory gson = GsonConverterFactory.create(); | |
| @Override | |
| public Converter<ResponseBody, ?> responseBodyConverter( | |
| Type type, Annotation[] annotations, Retrofit retrofit) { | |
| // Retrofit gives us all the annotations so we just need to check | |
| for (Annotation annotation : annotations) { |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| apply plugin: 'com.android.application' | |
| apply plugin: 'android-apt' | |
| android { | |
| compileSdkVersion versions.compileSdk | |
| buildToolsVersion versions.buildTools | |
| defaultConfig { | |
| applicationId "samples.linhtruong.com.ui_reactive_rxjava_realm" | |
| minSdkVersion versions.minSdk |
| INSTALL JAVA | |
| $ sudo apt-get update && sudo apt-get install default-jre | |
| INSTALL ELASTIC SEARCH https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html | |
| $ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| $ echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| $ sudo apt-get update && sudo apt-get install elasticsearch | |
| $ sudo update-rc.d elasticsearch defaults 95 10 | |
| $ sudo service elasticsearch restart | |
| $ sudo service elasticsearch status |
| // app module build.gradle | |
| apply plugin: 'com.android.application' | |
| android { | |
| compileSdkVersion rootProject.compileSdkVersion | |
| buildToolsVersion rootProject.buildToolsVersion | |
| defaultConfig { | |
| applicationId "com.segunfamisa.gradleextraproperties" | |
| minSdkVersion rootProject.minSdkVersion | |
| targetSdkVersion rootProject.targetSdkVersion |
| // This layout will display its children with rounded corners | |
| // It works with Glide image library placeholders and animations | |
| // It assumes your background is a solid color. If you need the corners to be truly transparent, | |
| // this solution will not work for you. | |
| package com.myapp.ui; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; |