Skip to content

Instantly share code, notes, and snippets.

@traffisco
traffisco / gist:dad4fc0d9cf067ce3e55e161910a07fe
Created July 2, 2024 07:57 — forked from zhangyoufu/gist:5814814
JNIEnv functions table, helpful when reverse engineering JNI
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
typedef int jint;
typedef int jclass;
typedef int jobject;
typedef int jmethodID;
typedef int jfieldID;
typedef int JNIEnv;
@traffisco
traffisco / dynamicStorage.js
Last active August 20, 2021 11:12
Make localStorage as simple read/write object
Storage.prototype.proxy = {}
Storage.prototype.getAll = function () {
data = {};
Object.keys(this).forEach(key => {
try {
data[key] = JSON.parse(this[key]);
} catch {
data[key] = this[key];
}
});