dse@susepc:~$ ~/Projects/mruby-1.4.1/bin/mirb
mirb - Embeddable Interactive Ruby Shell
> 1
=> 1
> 22
=> 22
> 你好 = 1
=> 1
> 你好
=> 1
🌚
duangsuse::Echo
class/module name must be CONSTANT 嗯... 这样就得想办法解决常量区分的问题
太烧脑了,Ruby 是这样区分常量和其它变量的... 要不然加个
字符串 = String#=> Class
class String
class << self
alias :初始化 :initialize
alias :新 :new
alias :被继承时 :inherited
alias :超类 :superclass
alias :类 :class
end
alias :剪切 :split
end
字符串.类
来来来直接靠 Ruby 本身「汉化」 Ruby 哈哈 🤣
感谢 Matz 居然还让 Ruby 支持了非 ascii 标识符...
duangsuse::Echo
太烧脑了,Ruby 是这样区分常量和其它变量的... 要不然加个
如果觉得有解决方法的尽可能告诉我吧.... (歧视中文系列
(或许可以把以
(或许可以把以
类 或 模块 或 常量 结尾的作为常量
duangsuse::Echo
Ruby 呀就有一个好,Python 的 ctypes sgefault 了啥都没有,Ruby 有非常详细的错误报告,包含 C 调用堆栈记录,非常方便调试
拿去把 Python 批判一番,看看 Ruby 靠优雅语法和 std 都给自己赢了一大堆实现了,垃圾 Python 呢?
man bcBC 的高级程度超乎我的想象 🌚...
触手可得的高级数学计算 DSL
define loop_print (c) { while (1) print(c); }loop_print(2333)
while (1)
print "烫" /* 23333 */
for (i = 1; i <= 100; i++) {
if (i % 3 == 0) { /* Fizz */
print "Fizz!\n"
continue
}
if (i % 5 == 0) { /* Buzz */
print "Buzz!\n"
} else {
print i, "\n"
}
}
还有个
你可以这样算
(有点高级啊,UNIX 工程师都是这么玩的.... 我还是选择 bc 😂
dc is a reverse-polish desk calculator which supports unlimited precision arithmetic.
(记住比 bc 低级就是了)(滑稽)你可以这样算
1 + 2 + 3 * 3
2
1
+
3
3
*
+
p
等于
(+ (+ 2 1) (* 3 3))
(有点高级啊,UNIX 工程师都是这么玩的.... 我还是选择 bc 😂
Forwarded from duangsues.is_a? SaltedFish
##### Gathering file information...真好用
RUN: /home/dse/rd/bin/retdec-fileinfo -c /home/dse/liba.so.c.json --similarity /home/dse/liba.so --no-hashes=all --crypto /home/dse/rd/bin/../share/retdec/support/generic/yara_patterns/signsrch/signsrch.yara --max-memory-half-ram
Input file : /home/dse/liba.so
File format : ELF
File class : 32-bit
File type : DLL
Architecture : x86 (or later and compatible)
Endianness : Little endian
Detected tool : gold (1.11) (linker), .note section heuristic
Detected tool : GCC (4.8) (compiler), .comment section heuristic
Detected tool : GCC (4.9) (compiler), .comment section heuristic
Original language : C++