Skip to content

Instantly share code, notes, and snippets.

View mufumbo's full-sized avatar

Rafael Sanches mufumbo

View GitHub Profile
@stefanrusek
stefanrusek / Fix for android v4.2.2
Created November 8, 2014 03:37
This is a work around for the appcompat v21 on android 4.2.2.
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
menu = new MenuWrapper(menu) {
private MenuItem fix(MenuItem item) {
try {
Field f = item.getClass().getDeclaredField("mEmulateProviderVisibilityOverride");
f.setAccessible(true);
@mufumbo
mufumbo / gist:6325670
Last active December 21, 2015 15:19
proof of concept for simulating the appengine dispatch.xml while in development mode
package com.yumyumlabs.web.filter;
import com.google.appengine.api.labs.modules.ModulesService;
import com.google.appengine.api.labs.modules.ModulesServiceFactory;
import com.google.appengine.api.utils.SystemProperty;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
@liovch
liovch / gist:3168961
Created July 24, 2012 09:01
GIMP color balance filter shader
NSString *const kColorShiftFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform lowp float redShift;
uniform lowp float greenShift;
uniform lowp float blueShift;