Skip to content

Instantly share code, notes, and snippets.

@ankitdbst
ankitdbst / APIHelper.java
Last active July 12, 2019 05:19 — forked from pallavahooja/APIHelper.java
Retrofit Retry
package app.goplus.in.v2.network;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
* Created by pallavahooja on 16/05/16.
*/
public class APIHelper {

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

function doHash(str, seed) {
var m = 0x5bd1e995;
var r = 24;
var h = seed ^ str.length;
var length = str.length;
var currentIndex = 0;
while (length >= 4) {
var k = UInt32(str, currentIndex);