f_p(x) = 27.5 * 2 ^ (x / 12)
- Python
f_p = lambda x: 27.5 * 2 ** (x / 12)
| CXX=g++ | |
| CFLAGS=-Wall -Wextra -O3 | |
| all: hello helloplugin.so | |
| hello: main.cpp plugininterface.h | |
| $(CXX) $(CFLAGS) -ldl $< -o $@ | |
| helloplugin.so: helloplugin.cpp plugininterface.h | |
| $(CXX) $(CFLAGS) -shared -fPIC $< -o $@ |
I hereby claim:
To claim this, I am signing this object:
| """ | |
| A truth table (CSV) generator for your logic class! | |
| Example: | |
| $ python truth_table.py | |
| Variables: p; q | |
| Formulae: p and q; p or q; not p; implies(p, q); p == q | |
| "p","q","p and q","p or q","not p","implies(p, q)","p == q" | |
| True,True,True,True,False,True,True |
| #define NUM_OF(x) (sizeof(x) / sizeof(x[0])) | |
| static const int BUTTON = P2_1; | |
| static const int BUTTON_PRESSED = 0; | |
| static const int BUTTON_RELEASED = 1; | |
| static const int FANS[] = {P2_0, P2_5, P2_4, P1_5, P1_4}; | |
| static const int NUM_OF_FANS = NUM_OF(FANS); | |
| static const int FAN_FULL_SPEED = 0xFF; | |
| static unsigned char pwm = FAN_FULL_SPEED; |
| import numpy as np | |
| import math | |
| def regression(points, A_funcs, b_func): | |
| A = [[f(*p) for f in A_funcs] for p in points] | |
| b = [b_func(*p) for p in points] | |
| AT = np.transpose(A) | |
| hat = np.dot(np.dot(np.linalg.inv(np.dot(AT, A)), AT), b) | |
| e = b - np.dot(A, hat) | |
| return list(hat), 1 - np.dot(e, e) |
今天我加入了 ReSwitched Team 的 Discord 服务器,想及时地捞点 Nintendo Switch 破解的信息,因为我也很想给这个平台写点 Homebrew 什么的。
翻看他们历史记录的时候,我发现了一个很棒的列表,做完这些就能成为一个“全栈逆向工程师”。很感兴趣,于是翻译到这里来。感觉项目还是相当多,内容还是相当复杂的,当然信息量也是很大的。转载时请注明译者与来源,本文以 CC BY-NC-SA 4.0 协议开源。
下面是翻译:
好的,那么这是我推荐的成为一个“全栈逆向工程师”(我自己造的词,但是我很喜欢)的列表。这个列表不是为了把你变成一个厉害的桌面应用逆向工程师、主机逆向工程师,或是内核逆向工程师,而是让你把这些部分都了解一点,以便你可以在任何一个部分深入进去。
| #!/usr/bin/env python | |
| import csv | |
| from lxml import etree | |
| def append(root, name, content = None): | |
| element = etree.SubElement(root, name) | |
| if content != None: | |
| element.text = etree.CDATA(content.decode('utf8')) | |
| return element |
为了让更多人看懂,这篇文章使用中文撰写。 原文地址:https://gist.github.com/yvbbrjdr/ea80fc5ef21f1a518346c92bda611993
由Glype想到的
2013年7月8日,clowwindy写道: