Skip to content

Instantly share code, notes, and snippets.

View KevinNitroG's full-sized avatar
🤔
Am I existing?

Kevin Nitro KevinNitroG

🤔
Am I existing?
View GitHub Profile
@KevinNitroG
KevinNitroG / IT002-23520161-Buoi_7-Bai_1.cpp
Created April 5, 2024 14:46
gửi thầy Khánh hỏi về sử dụng overload operator >> của parent class cho child class
#include <cstring>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
class CanBoVienChuc
{
friend class GiangVien;
@KevinNitroG
KevinNitroG / heapSort.cpp
Last active March 8, 2024 11:43
Code C++ Heap Sort & Quick Sort cho thuyết trình DSA UIT IT003.O24 (giảng viên cô Dương Việt Hằng)
#include <bits/stdc++.h>
using namespace std;
void heapify(int[], int, int);
void heapSort(int[], int);
void display(int[], int);
int main()
{
int arr[] = {1, 14, 3, 7, 0};
@KevinNitroG
KevinNitroG / README.md
Last active January 8, 2024 06:21
Triển khai khảo sát sự hài lòng của người học với trải nghiệm học tập (chỉ số IR3_dự án VUDP)

https://ks.vnuhcm.edu.vn/khao-sat/chi-tiet-khao-sat

f12 paste vào console lệnh dưới

Nguyên văn email

Chào các bạn sinh viên!

Với nhu cầu cấp thiết trong việc nâng cao chất lượng nguồn nhân lực trong bối cảnh hội nhập kinh tế và sự bùng nổ của thời đại công nghệ 4.0, trong khuôn khổ Dự án Phát triển các Đại học Quốc gia Việt Nam.

@KevinNitroG
KevinNitroG / ticket.cpp
Last active November 6, 2023 17:41
WeCode lỏ
#include <iostream>
using namespace std;
// Bước check 1: Quick check xem có thoả mãn tồn tại không
bool checkValid(int first, int sec)
{
if (first > 18 || sec > 18 || first < sec)
return false;
return true;
}
@KevinNitroG
KevinNitroG / modify.py
Last active October 28, 2023 06:15
Pháp luật đại cương các câu hỏi ôn tập
import re
re_pattern_bai = r".*[Bb][Àà][Ii] \d{1,2}.*"
re_pattern_cau = r"\d{1,2}.*"
re_pattern_de = r".*Ðề.*"
re_pattern_caudung = r".*\([Đđ]úng\).*"
with open('pldc_de.txt', 'r', encoding='utf-8') as f:
content = f.readlines()
Source: https://reddit.com/r/GenP/s/Utz2nzaz6G
C:\\Windows\\System32\\Drivers\\etc
0.0.0.0 ic.adobe.io
0.0.0.0 cc-api-data.adobe.io
@KevinNitroG
KevinNitroG / Dell set OEMID & StoreContentModifier.bat
Created August 5, 2023 04:20
Set OEMID & StoreContentModifier for Dell's computer in Microsoft Store to fix downloading Dell's apps issue. Run as administrator. Source from reddit maybe. But it doesn't work for me 😪
@echo off
setlocal
echo:
echo Setting OEMID in RegEdit...
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Store" /v OEMID /f /t REG_SZ /d DELL
echo:
echo Setting SCMID...
echo Fetching System Model Name
@KevinNitroG
KevinNitroG / Script douyin.js
Created July 10, 2023 16:19
Script tải video douyin, f12 vào console paste, share bởi Nguyen Tung
var getid=async function(sec_user_id,max_cursor){
var res=await fetch("https://www.douyin.com/aweme/v1/web/aweme/post/?device_platform=webapp&aid=6383&channel=channel_pc_web&sec_user_id="+sec_user_id+"&max_cursor="+max_cursor, {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "vi",
"sec-ch-ua": "\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Microsoft Edge\";v=\"108\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
@KevinNitroG
KevinNitroG / Convert Dictionary.py
Last active July 11, 2023 11:48
Đây là python script chuyển đổi dictionary (viết tắt) giữa các phần mềm (GBoard, OpenKey, EVKey, UniKey)
origin =r"""
"""
import os
import sys
import fnmatch
# Const
gboard_format = r"# Gboard Dictionary version:1"
gboard_macro = "dictionary.txt"