Skip to content

Instantly share code, notes, and snippets.

View zzNuAzz's full-sized avatar

Trần Tuấn Anh zzNuAzz

  • University of Engineering and Technology, VNU
  • Hanoi
View GitHub Profile
@zzNuAzz
zzNuAzz / install window.md
Last active September 18, 2023 15:32
Win install
# Google chrome
winget install --id=Google.Chrome  -e -h
# CMake
winget install --id=Kitware.CMake  -e -h
# GIT
winget install --id Git.Git -e --source winget -h
# VS code
winget install -e --id Microsoft.VisualStudioCode -h
# Postman
Dòng: 65
Câu hỏi: Thông số "Core i3, socket 775" là của thiết bị nào?
Câu trả lời: CPU.
Dòng: 655
Câu hỏi: Thông số "7200 rpm" là của thiết bị nào?
Câu trả lời: HDD.
@zzNuAzz
zzNuAzz / caro.cpp
Last active December 9, 2022 13:49
// 3x3 tic tac toe
// 1) Ai engine
// + State representation : vector<vector<char>> (3x3)
// + State game
// + checking if game is end
// + detect winner if game end
// + render (text screen)
// + valid moves
// + detect current player
// + calculate valid moves

Ubuntu upgrade

sudo apt update
sudo apt upgrade

install oh-my-zsh

# install zsh
sudo apt-get install zsh -y
#include <iostream>
using namespace std;
const int nmax = 21;
int main() {
int n;
cin >> n;
int a[nmax];
int b[nmax];
for(int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
@zzNuAzz
zzNuAzz / dino.cpp
Created October 30, 2020 05:29
Dino
#include <windows.h>
#include <GL/glut.h>
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
const string FILE_NAME = "dinosaur.dat";
class Piece
{
public:
@zzNuAzz
zzNuAzz / script.js
Last active October 26, 2020 08:28
kiểm thử tool
function get() {
return new Promise((resolve, reject) => {
fetch('https://gist.githubusercontent.com/zzNuAzz/645bc20f12d7a04bd593bc14fc01be42/raw/e4ad40db0d6c1dac9315588f92699e17c2e0e7c4/kiemthu.json') // Call the fetch function passing the url of the API as a parameter
.then(data => data.json())
.then(data => resolve(data))
.catch(() => reject());
});
}
function sleep(ms) {
@zzNuAzz
zzNuAzz / kiemthu.json
Created October 26, 2020 06:30
trắc nghiệm kiểm thử
[
{
"question": "Kỹ thuật được áp dụng để kiểm tra khả năng sử dụng là?",
"right": "Hộp đen"
},
{
"question": "{{Thẩm tra || Verification}} là quá trình đánh giá phần mềm có đáp ứng các yêu cầu được thiết lập trong giai đoạn trước hay không.",
"right": null
},
{
@zzNuAzz
zzNuAzz / synctime.bat
Created October 25, 2020 13:30
sync time window
@echo off
net start W32Time
w32tm /resync
echo sync complete
@zzNuAzz
zzNuAzz / run.cmd
Created October 21, 2020 11:52
compile c++ opengl win
rm -f draw.exe
g++ -c draw.cpp -o temp.out -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include"
g++ temp.out -o draw.exe -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc -lglu32 -lglut32 -lopengl32
rm -f temp.out
draw.exe