Skip to content

Instantly share code, notes, and snippets.

@Holidaybear
Holidaybear / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Holidaybear
Holidaybear / build.gradle
Created May 8, 2014 04:30
How to bundle *.so to APK by using Gradle
task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") {
destinationDir file("$buildDir/native-libs")
baseName "native-libs"
extension "jar"
from fileTree(dir: "libs", include: "**/*.so")
into "lib/"
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)