Skip to content

Instantly share code, notes, and snippets.

@eerock
eerock / jnibuild.sh
Last active August 29, 2015 13:56
JNI Build Wrapper for Android Studio
#!/bin/bash
#
# The purpose of this script is to aide building native libs in
# Android Studio using recent versions of Gradle 0.8.+. As of this
# version of the Gradle plugin building jni doesn't work just yet.
# So as a workaround you need to disable Gradle from building
# jni sources by adding the following to your project's build.gradle:
#
# android {
# sourceSets.main {
@eerock
eerock / glitcher.cpp
Created May 19, 2013 02:51
C++ glitch-art helper code.Compile this glitcher.exe, then drag a jpg or gif onto it. A "filename.glitched.ext" will be created alongside the original and will have several random bytes randomized.
// C++ glitch-art creation tool
// written by eerock@github.com
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include <string>