Skip to content

Instantly share code, notes, and snippets.

View reixa00's full-sized avatar
🏎️
Collaborating

Asier reixa00

🏎️
Collaborating
View GitHub Profile
@reixa00
reixa00 / JSONRPCClient.java
Created February 17, 2014 14:54
JSONRPCClient error specification fix
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;
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;
@reixa00
reixa00 / AppActivity.java
Created May 15, 2014 11:53
Calling Android native functions from Cocos2d-x v3.0
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() {
/*
* 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
@reixa00
reixa00 / gist:94543264bbe3b9d94d26
Last active December 12, 2016 14:52
Shared OkHttp application Interceptor that will add or intercept E-Tag hash for ALL requests on client instance
// 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;