Skip to content

Instantly share code, notes, and snippets.

View AgentKnopf's full-sized avatar
💭
Unity, Blender, Android development

Agent Knopf AgentKnopf

💭
Unity, Blender, Android development
View GitHub Profile
public final class User {
@NotNull
private final String email;
private final int age;
public User(@NotNull String email, int age) {
if (email == null) {
throw new RuntimeException("Email can't be null");
}
this.email = email;
@AgentKnopf
AgentKnopf / p5n.md
Last active June 10, 2017 19:06 — forked from rwz/p5n.md
persona 5 negotiatons

Codes

  • L: Likes
  • D: Dislikes
  • M: Meh.

Depending on the persona for successful negotiation you need either 2 Like answers or 1 Like + 1 Meh.

Who likes what

public static class SomeClass {
public void onEvent(String value) {
Log.i(TAG, value);
Eventbus.post(12);
Eventbus.post(true);
}
public void onEvent(Integer value) {
Log.i(TAG, String.valueOf(value));
@AgentKnopf
AgentKnopf / Login
Last active August 29, 2015 14:27
Usage of ConfigurationManager in Login Fragment
//This class resides in my app project (not the library project)
public class Login extends Fragment {
@Inject
ConfigurationManager manager;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ApplicationBootstrap.INSTANCE.getApplicationComponent().inject(this);
}