Skip to content

Instantly share code, notes, and snippets.

View miguelibero's full-sized avatar

Miguel Ibero miguelibero

View GitHub Profile
@miguelibero
miguelibero / gist:2043782
Created March 15, 2012 11:34
Android LayoutInflater.Factory to overwrite menu item style
package org.santamonica.module;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.lang.reflect.Method;
import org.santamonica.R;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@miguelibero
miguelibero / joint_mem.h
Created September 21, 2014 23:00
Joint Memory
#ifndef _joint_mem_hpp_
#define _joint_mem_hpp_
#include <memory>
#include <cstdint>
typedef uint8_t joint_mem_unit;
template<typename Alloc = std::allocator<joint_mem_unit>>
class joint_mem_alloc