This file contains 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
4 first Bytes: ["18", "08", "00", "12"] | |
Packet size converted 876 | |
Packet size Bytes: ["6c", "03"] | |
Rest Bytes: ["83", "6c", "00", "00", "00", "02", "61", "00", "6d", "00", "00", "03", "5e", "42", "4d", "5e", "03", "00", "00", "00", "00", "00", "00", "3e", "00", "00", "00", "28", "00", "00", "00", "78", "00", "00", "00", "32", "00", "00", "00", "01", "00", "01", "00", "00", "00", "00", "00", "20", "03", "00", "00", "c4", "0e", "00", "00", "c4", "0e", "00", "00", "00", "00", "00", "00", "00", "00", "00", "00", "00", "00", "00", "00", "ff", "ff", "ff", "00", "e3", "c7", "8f", "04", "47", "c6", "38", "fe", "08", "f0", "3f", "c1", "b7", "f8", "37", "00", "e3", "c7", "8e", "00", "63", "8e", "38", "fc", "00", "ef", "cf", "be", "b7", "f7", "d7", "00", "e3", "c7", "8c", "00", "71", "1e", "38", "f8", "00", "df", "f7", "7f", "37", "ef", "e7", "00", "e3", "c7", "88", "78", "71", "1e", "38", "f0", "f0", "bf", "fe", "ff", "b7", "df", "f7", "00", "e3", "c7", "88", "fc", "78", "3e", "38", "f1", "f8", "bf", "fe", "ff", "b7", " |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
/* Include the mruby headers */ | |
#include <mruby.h> | |
#include <mruby/proc.h> | |
#include <mruby/data.h> | |
#include <mruby/compile.h> |
This file contains 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
#!/bin/env bash | |
## Mruby dir | |
# cd mruby | |
# rake clean | |
# rake | |
# cd .. | |
gcc -I mruby/include/ old_mrbc.c mruby/build/host/lib/libmruby.a -lm -o old_mrbc.out | |
## execute |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
/* Include the mruby headers */ | |
#include <mruby.h> | |
#include <mruby/compile.h> | |
#include "mruby/irep.h" |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
/* Include the mruby headers */ | |
#include <mruby.h> | |
#include <mruby/compile.h> | |
#include "mruby/irep.h" |
This file contains 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
.set noreorder | |
.global pipe | |
.type pipe,@function | |
pipe: | |
lui $gp, %hi(_gp_disp) | |
addiu $gp, %lo(_gp_disp) | |
addu $gp, $gp, $25 | |
li $2, 4042 | |
syscall |
This file contains 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
module T | |
def self.display | |
puts "display 1" | |
end | |
end | |
T.display | |
def T.display | |
puts "display 2" |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
//SEKAL | |
int process_transaction(int (*callbackFunc)(int iDo)) | |
{ | |
int showBitmap=1; | |
// gac | |
callbackFunc(showBitmap); |
This file contains 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
fib = Fiber.new do | |
x, y = 0, 1 | |
loop do | |
puts "before stop" | |
Fiber.yield y | |
puts "after stop" | |
x,y = y,x+y | |
end | |
end |
This file contains 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
class FileDb | |
def self.open(path) | |
if File.exist?(path) | |
file = File.open(path, "r") | |
self.parse(file.read) | |
else | |
Hash.new | |
end | |
ensure | |
file.close if file |
OlderNewer