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
[Script Info] | |
; Script generated by Aegisub 3.2.2 | |
; http://www.aegisub.org/ | |
ScriptType: v4.00+ | |
PlayResX: 1920 | |
PlayResY: 1080 | |
YCbCr Matrix: TV.601 | |
[Aegisub Project Garbage] | |
Audio File: Conan Rents A Family In Japan-vzaXw2ztCqU.mkv |
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
* Bị obfuscated, có thể dùng de4dot (https://github.com/0xd4d/de4dot) để deobfuscate | |
* Dùng ILSpy để decompile, hoặc dnSpy để decompile + sửa code để null | |
* Entry point: ns0.Class4.Main | |
* Khởi tạo TestMetro.Form1 | |
* TestMetro.Form1..ctor | |
* Gọi InitializeComponent(): khởi tạo các UI element | |
* Tạo ns1.MouseHook, on mouse action gọi TestMetro.Form1.method_12 | |
* Load Form1 (implied) |
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
.486 | |
.model flat, stdcall | |
option casemap :none | |
include \masm32\include\masm32rt.inc | |
.data | |
text BYTE "toi co the di tren thuy tinh ma khong bi gi", 0 | |
.code |
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
; eax = x / y | |
divide proc x: SDWORD, y: SDWORD | |
mov eax, x | |
cdq | |
idiv y | |
ret | |
divide endp | |
; eax = x % y | |
modulo proc x: SDWORD, y: SDWORD |
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
-- Create table | |
CREATE TABLE teams ( | |
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, | |
team TEXT NOT NULL, | |
wins INT NOT NULL, | |
losses INT NOT NULL | |
); | |
INSERT INTO teams (team, wins, losses) VALUES ("Anteaters", 10, 2); | |
INSERT INTO teams (team, wins, losses) VALUES ("Byrds", 8, 0); |
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 list_to_int(l): | |
res = 0 | |
for digit in l: | |
res = (res * 10) + digit | |
return res | |
from itertools import permutations | |
l = list(permutations([1,1,2,2,3,3,3,7])) | |
l2 = [] |
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
#include <ctype.h> | |
#include <stdio.h> | |
char c; | |
int vowels, consonants, others; | |
int main() { | |
printf("Enter a string: "); | |
do { |
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
Base address: http://api.bus.danang.gov.vn/ | |
Bus routes: get-routes | |
Bus stops: get-busStops | |
Notifications: get-busStops | |
Advertisements: get-advs | |
Get buses in range: "get-buses/{0},{1}/{2}", (0, 1, 2: unknown) | |
Get buses by stop id?: "get-buses/{0}/{1}", (0, 1: unknown) | |
Get buses by route id: "get-buses/{0}" (0: route id, presumed) |
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
import numpy | |
import scipy.optimize | |
from matplotlib import pyplot as plt | |
def calculate_rmse(poly, x, y): | |
y_poly = numpy.polyval(poly, x) | |
mse = ((y - y_poly) ** 2).mean() | |
return numpy.sqrt(mse) | |
def calculate_rmse_exp(popt, x, y): |
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
#include <math.h> | |
#include <stdio.h> | |
#define INF 0x6996 | |
/* solve_quadratic(): solve the quadratic equation */ | |
/* returns the number of valid roots */ | |
/* resulting roots are stored in roots[2] */ | |
int solve_quadratic(double a, double b, double c, double roots[2]) { | |
double delta; |