Skip to content

Instantly share code, notes, and snippets.

🏎
Collaborating

Asier axierjhtjz

🏎
Collaborating
Block or report user

Report or block axierjhtjz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@axierjhtjz
axierjhtjz / gist:94543264bbe3b9d94d26
Last active Dec 12, 2016
Shared OkHttp application Interceptor that will add or intercept E-Tag hash for ALL requests on client instance
View gist:94543264bbe3b9d94d26
// by Nikola Despotoski
import android.content.Context;
import android.text.TextUtils;
import com.squareup.okhttp.Headers;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
View FloatLabelLayout.java
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@axierjhtjz
axierjhtjz / AppActivity.java
Created May 15, 2014
Calling Android native functions from Cocos2d-x v3.0
View AppActivity.java
package org.cocos2dx.cpp;
import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
import android.util.Log;
public class AppActivity extends Cocos2dxActivity {
public Cocos2dxGLSurfaceView onCreateView() {
View SearchableAdapter.java
package com.yourco.yourapp;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
@axierjhtjz
axierjhtjz / JSONRPCClient.java
Created Feb 17, 2014
JSONRPCClient error specification fix
View JSONRPCClient.java
package com.irontec.saremobile.fragments;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.alexd.jsonrpc.JSONRPCClient;
import org.alexd.jsonrpc.JSONRPCException;
import org.json.JSONException;
You can’t perform that action at this time.