This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = "Hello World"; | |
var bins = []; | |
for(var i=0;i<data.length;i++){ | |
bins.push(data.charCodeAt(i).toString(2)); | |
} | |
console.log(bins); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build = 1; //start number=1 | |
rax = 0; //last used number | |
for(var i = 0;i<5;i++){ | |
tmp=build; | |
build+=rax; | |
rax=tmp; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace std; | |
//----------------------Convert a Java data------------------------\\ | |
jstring create_jstring(JNIEnv *env, const char *data) { | |
return env->NewStringUTF(data); | |
} | |
jint create_jint(JNIEnv *env, int data){ |
NewerOlder