Skip to content

Instantly share code, notes, and snippets.

View maxep's full-sized avatar

Maxime Epain maxep

View GitHub Profile
@maxep
maxep / build_openssl_android.sh
Created December 3, 2015 13:32
[Android] Script to build openssl libs
#!/bin/bash
# Cross-compile environment for Android on ARMv7 and x86
#
# Contents licensed under the terms of the OpenSSL license
# http://www.openssl.org/source/license.html
#
# See http://wiki.openssl.org/index.php/FIPS_Library_and_Android
# and http://wiki.openssl.org/index.php/Android
###########################################################################
@maxep
maxep / build_openssl_ios.sh
Created December 3, 2015 13:31
[iOS] Script to build openssl libs
#!/bin/sh
# Automatic build script for libssl and libcrypto
# for iPhoneOS and iPhoneSimulator
#
# Created by Felix Schulze on 16.12.10.
# Copyright 2010 Felix Schulze. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@maxep
maxep / MyImageButton.java
Last active May 5, 2024 12:14
[Android] Add gray filter when disabling an ImageButton
import android.content.Context;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageButton;
public class MyImageButton extends ImageButton{
public MyImageButton(Context context) {