Skip to content

Instantly share code, notes, and snippets.

View tuankiet65's full-sized avatar

Kiet Ho tuankiet65

View GitHub Profile
[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
* 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)
.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
; 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
-- 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);
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 = []
#include <ctype.h>
#include <stdio.h>
char c;
int vowels, consonants, others;
int main() {
printf("Enter a string: ");
do {
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)
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):
@tuankiet65
tuankiet65 / q6.c
Last active September 28, 2018 16:10
#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;