I hereby claim:
- I am sierisimo on github.
- I am sierisimo (https://keybase.io/sierisimo) on keybase.
- I have a public key ASCoMnYCnni0rKN3cKTPM5oGpzqSMApvgyXjjySTlR0InAo
To claim this, I am signing this object:
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import android.widget.TextView; | |
/** | |
* Created by khaled bakhtiari on 10/26/2014. | |
* <a href="http://about.me/kh.bakhtiari"> | |
*/ |
if(userEmail == null || userEmail.trim().isEmpty()) { | |
boolean flag = false; | |
Pattern emailPattern = Patterns.EMAIL_ADDRESS; // API level 8+ | |
Account[] accounts = AccountManager.get(LoginActivity.this).getAccounts(); | |
for (Account account : accounts) { | |
if (emailPattern.matcher(account.name).matches()) { |
I hereby claim:
To claim this, I am signing this object:
with Ada.Text_IO; | |
use Ada.Text_IO; | |
procedure BabyAda is | |
begin | |
Put_Line ("Hello World, my name is Ada Victoria Jaime Reyes!"); | |
end BabyAda; |
Author: Michael Zeng
inline fun <reified T : Activity> Context.launchActivity(intentBlock: Intent.() -> Unit = {}) { | |
val intent = Intent(this, T::class.java) | |
intent.intentBlock() | |
startActivity(intent) | |
} |
open class CustomPluginWithTask : Plugin<Project> { | |
override fun apply(project: Project) { | |
project.tasks.create("myCustomTask") { task -> | |
task.group = "My Group" | |
task.description = "A simple task example" | |
println("Hello, I'm your plugin") | |
} | |
} | |
} |
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
} | |
} |
#! /usr/bin/env bash | |
PLANTUML_EXECUTABLE="plantuml.jar" | |
PLANTUML_URL="http://sourceforge.net/projects/plantuml/files/plantuml.jar/download" | |
function usage { | |
printf "Usage: $0 [-h] [-f <FORMAT>]\n\\ntWhere <FORMAT> can be:\n\t\tpng,svg" 1>&2 | |
exit 1 | |
} |
From time to time we need to talk about this topic. Most of us are familiar with it and we feel comfortable with writing tests, but the truth is that doing so is not a particularly popular topic.
In the past years, the tendency has been using some variant of cool techniques like TDD and BDD, and they are well applied; but most developers don't follow the rules or feel like the deadlines don't allow them to just write unit or integration tests. Geez… I even have heard some people say: "[sic] writing test is for QA teams right?"
Well… this is my attempt to show that testing is not that hard and can be an easy part of your daily workflow.
Notes: