(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.
| 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.
| /* The MIT License (MIT) | |
| Copyright (c) 2014, Marty Glaubitz | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| public class LoginActivity extends Activity { | |
| @InjectView(R.id.login_form) | |
| private LoginForm mLoginForm; | |
| // SNIP | |
| public void onLoginButtonPressed() { | |
| LoginFormValidator validator = new LoginFormValidator(); | |
| validator.validate(mLoginForm.getUsername(), | |
| mLoginForm.getPassword(), |
| /* | |
| * Copyright (C) 2013 Google, 2014 Stefano Dacchille | |
| * | |
| * 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.example.android_transition_samples.app; | |
| import android.animation.Animator; | |
| import android.animation.AnimatorSet; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.PropertyValuesHolder; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
| import android.annotation.SuppressLint; | |
| import android.content.Context; | |
| import android.util.Log; | |
| import retrofit.client.Client; | |
| import retrofit.client.Header; | |
| import retrofit.client.Request; | |
| import retrofit.client.Response; | |
| import retrofit.mime.TypedInput; |
| /* | |
| * 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 |
| import android.content.Context; | |
| import android.content.ContextWrapper; | |
| import android.content.res.AssetManager; | |
| import android.content.res.Configuration; | |
| import android.content.res.Resources; | |
| import android.graphics.drawable.Drawable; | |
| import android.util.DisplayMetrics; | |
| import android.util.Log; | |
| /** |
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * 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 |