Skip to content

Instantly share code, notes, and snippets.

View tonespy's full-sized avatar
🙄
Lol...

Abubakar Oladeji tonespy

🙄
Lol...
  • Netherlands
View GitHub Profile
@tonespy
tonespy / LgaHandler.java
Last active August 9, 2016 14:20
Tail Recursion Retrofit
public class LgaHandler {
private static final String TAG = "Lgahandler";
private static Context mContext;
private static Realm realm;
private static ClientBus clientBus;
private static int page = 1;
private static int perPage = 21;
@tonespy
tonespy / queue.js
Created June 1, 2016 08:39 — forked from jpatel531/queue.js
Pusher Message Queue
function MessageQueue(){
this.pusher = new Pusher('key');
this.items = [];
this.timeWindow = 100; // 100 ms
}
// send messages every 100ms
MessageQueue.prototype.cycle = function(){
var self = this;
<!DOCTYPE <!DOCTYPE html>
<html>
<head>
<title>Call Friends</title>
<link rel="stylesheet" type="text/css" href="holder.css">
</head>
<body>
<div class="main">
<input class="name" placeholder="Full Name"></input>
<input class="name" placeholder="Display Name"></input>
@tonespy
tonespy / FloatLabelAutoCompleteTextView.java
Last active August 29, 2015 14:16
FloatLabelEditText Using NineOldAndroids For Animation
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.text.Editable;
import android.text.TextWatcher;
import android.text.method.KeyListener;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;