(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package com.crejaud.jrejaud.androidwearmessenger; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.os.AsyncTask; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.widget.Toast; | |
| import com.google.android.gms.common.ConnectionResult; |
| def toCamelCase(String string) { | |
| String result = "" | |
| string.findAll("[^\\W]+") { String word -> | |
| result += word.capitalize() | |
| } | |
| return result | |
| } | |
| afterEvaluate { project -> | |
| Configuration runtimeConfiguration = project.configurations.getByName('compile') |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| android { | |
| applicationVariants.all { variant -> | |
| def flavor = variant.mergedFlavor | |
| def name = flavor.getVersionName() | |
| def versionName = name + '-' + variant.properties.get('flavorName') | |
| if (variant.buildType.isDebuggable()) { | |
| versionName += '-debug'; | |
| } | |
| flavor.versionName = versionName; | |
| } |
| /* | |
| * Copyright 2014 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package com.cyrilmottier.android.citybikes.provider; | |
| import android.net.Uri; | |
| import com.cyrilmottier.android.avelov.BuildConfig; | |
| /** | |
| * @author Cyril Mottier | |
| */ | |
| public class CityBikesContract { |
| dependencies { | |
| def dagger_version = "1.1.0" | |
| compile "com.squareup.dagger:dagger:${dagger_version}" | |
| compile "com.squareup.dagger:dagger-compiler:${dagger_version}" | |
| } |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.