duangsuse::Echo
771 subscribers
4.42K photos
135 videos
583 files
6.72K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): a19a0b
Download Telegram
class/module name must be CONSTANT

嗯... 这样就得想办法解决常量区分的问题
duangsuse::Echo
class/module name must be CONSTANT 嗯... 这样就得想办法解决常量区分的问题
太烧脑了,Ruby 是这样区分常量和其它变量的... 要不然加个
字符串 = String
class String
class << self
alias :初始化 :initialize
alias :新 :new
alias :被继承时 :inherited
alias :超类 :superclass
alias :类 :class
end
alias :剪切 :split
end

字符串.类
#=> Class


来来来直接靠 Ruby 本身「汉化」 Ruby 哈哈 🤣
感谢 Matz 居然还让 Ruby 支持了非 ascii 标识符...
duangsuse::Echo
太烧脑了,Ruby 是这样区分常量和其它变量的... 要不然加个
如果觉得有解决方法的尽可能告诉我吧.... (歧视中文系列
(或许可以把以 模块常量 结尾的作为常量
比如:
字符串类
整数类
整数类::GMP版本常量
一定很 excited 🌚
Ruby 呀就有一个好,Python 的 ctypes sgefault 了啥都没有,Ruby 有非常详细的错误报告,包含 C 调用堆栈记录,非常方便调试
duangsuse::Echo
Ruby 呀就有一个好,Python 的 ctypes sgefault 了啥都没有,Ruby 有非常详细的错误报告,包含 C 调用堆栈记录,非常方便调试
拿去把 Python 批判一番,看看 Ruby 靠优雅语法和 std 都给自己赢了一大堆实现了,垃圾 Python 呢?
This media is not supported in your browser
VIEW IN TELEGRAM
man bc

BC 的高级程度超乎我的想象 🌚...
触手可得的高级数学计算 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"
}
}
而且体积只有 87K
This media is not supported in your browser
VIEW IN TELEGRAM
microcode update
HOW can I help? Maintaining debian packages (((( #sysadmin
This media is not supported in your browser
VIEW IN TELEGRAM
还有个 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 😂
##### 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++

真好用
// Address range: 0x8a1 - 0x8c4
int32_t BEL(void) {
// 0x8a1
int32_t v1;
return 4 * (v1 + 2) / 3 | 1;
}


原来的版本:


function BEL (.text) {
0x8a1: push ebp
0x8a2: ebp = esp ; begin logic
0x8a4: eax = *(ebp + 8) ; v1: *(bp + 8)
0x8a7: ecx = eax + 2 ; cx := ax + 2
0x8aa: edx = 1431655766 "VUUU" ; dx := 0x55555556
0x8af: eax = ecx ; ax := ax + 2 ; cx
0x8b1: edx:eax = eax * edx ; dx, ax := ax * dx ; dx = ax * dx
0x8b3: eax = ecx ; ax := cx (ax + 2)
0x8b5: eax >>= 31 ; ax := ax shr 0x1f
0x8b8: edx -= eax ; dx := dx - ax
0x8ba: eax = edx ; ax := dx (ax * dx - ax)
0x8bc: eax <<= 2 ; ax := ax shl 0x2
0x8bf: eax += 1 ; ax++
0x8c2: pop ebp
0x8c3: ret ; give control back to caller
}


这里很清楚(反正我也看不懂这是做什么(
me 里有一个字符串: 1keatGU3dFVKlkTFZESVpmUDZlRKRHVIBXTNZEcIFFWWJUTrJVc
手动分析了一下 BEL 函数.... 我整理一下