Skip to content

Instantly share code, notes, and snippets.

View tagantroy's full-sized avatar

Ivan Balaksha tagantroy

  • Meta
  • London
View GitHub Profile
package com.malinskiy.marathon.execution.device
import com.malinskiy.marathon.actor.Actor
import com.malinskiy.marathon.actor.StateMachine
import com.malinskiy.marathon.analytics.Analytics
import com.malinskiy.marathon.device.Device
import com.malinskiy.marathon.device.DevicePoolId
import com.malinskiy.marathon.execution.Configuration
import com.malinskiy.marathon.execution.DevicePoolMessage
import com.malinskiy.marathon.execution.DevicePoolMessage.FromDevice.RequestNextBatch
class TrieNode {
Character c;
Boolean isLeaf = false;
TrieNode[] children = new TrieNode[256];
public TrieNode() {}
public TrieNode(Character c) {
this.c = c;
}
}
@tagantroy
tagantroy / AccountAuthenticator.java
Created February 10, 2017 18:00 — forked from burgalon/AccountAuthenticator.java
Implementing OAuth2 with AccountManager, Retrofit and Dagger
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
package com.example.ivan.examplezbs;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.Date;
@DatabaseTable(tableName = "friend")
public class Friend {
package com.example.ivan.examplezbs;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.Collection;
@DatabaseTable(tableName = "peoples")
public class People {
package com.amudo.grfmerged;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
package com.amudo.grfmerged;
import android.app.Activity;
import android.app.Fragment;
import android.util.Log;
import com.amudo.grfmerged.entity.Page;
import com.unity3d.player.UnityPlayer;
package com.example.ivan.myapplication;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.widget.Button;
package com.example.ivan.myapplication;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.widget.Button;
package com.example.ivan.myapplication;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.widget.Button;