Skip to content

Instantly share code, notes, and snippets.

View behitek's full-sized avatar
😎

Hieu Nguyen Van behitek

😎
View GitHub Profile
@behitek
behitek / programing.md
Last active May 19, 2020 16:51
Thư viện Lập Trình Không Khó

Tổng hợp các tài liệu lập trình tiếng Việt cho người mới bắt đầu học lập trình. Bao gồm đa số tài liệu tiếng Việt và một số tài liệu tiếng anh.

Xem đầy đủ tại đây

Tài liệu hiện có

  • Tài liệu C/C++
  • Tài liệu Java
wrk -t1 -c1 -d60 -R2000 -s benmark_asr_norm.lua http://localhost:8188/rev-norm
Running 1m test @ http://localhost:8188/rev-norm
1 threads and 1 connections
Thread calibration: mean lat.: 4777.174ms, rate sampling interval: 16793ms
Thread Stats Avg Stdev Max +/- Stdev
Latency 32.09s 13.43s 0.92m 56.86%
Req/Sec 160.50 2.50 163.00 100.00%
9686 requests in 1.00m, 2.78MB read
Requests/sec: 161.42
Transfer/sec: 47.45KB
@behitek
behitek / copyright.js
Created May 1, 2020 11:40
Thêm copyright khi người dùng copy dữ liệu từ website
@behitek
behitek / vi_io.cpp
Created March 29, 2020 14:29
Nhập, Xuất tiếng Việt có dấu trong C++
#include <iostream>
#include <string>
#include <io.h>
#include <fcntl.h>
using namespace std;
int main()
{
_setmode(_fileno(stdin), _O_U16TEXT);
_setmode(_fileno(stdout), _O_U16TEXT);
@behitek
behitek / ee.v4.md
Last active February 16, 2020 04:15

global varible

domain=example.com

install eev4

wget -qO ee https://rt.cx/ee4 && sudo bash ee

site create

import win32serviceutil
import win32service
import win32event
import servicemanager
import socket
import time
#1. Sửa hàm main, chèn code của anh vào chỗ Your code here
#2. Chạy code này ở command line với tham số install
#Link: https://stackoverflow.com/questions/32404/
@behitek
behitek / vn_dict.txt
Created December 20, 2019 09:23
Từ ghép tiếng Việt
This file has been truncated, but you can view the full file.
##a dua
##a ha
@@UH
##a hoàn
@@NN
##a phiến
@@NN
##a phiến trắng
@@NN
##a tòng
@behitek
behitek / TeencodeReplacer.java
Created November 21, 2019 07:46
Replace teencode in text
public static String processLine(String line) {
double r = Math.random();
line = line.replaceAll("\\binb\\b", "inbox")
.replaceAll("\\bkô\\b", "không")
.replaceAll("\\bđtqg\\b", "đội tuyển quốc gia")
.replaceAll("\\bđag\\b", "đang")
.replaceAll("\\bvoz\\b", "vê ô dét")
.replaceAll("\\bhqua\\b", "hôm qua")
.replaceAll("\\bmọe\\b", "mẹ")
.replaceAll("\\bxog\\b", "mẹ")
#include<iostream>
#include<stdio.h>
#include<math.h>
#include<string.h>
using namespace std;
struct NGAYTHANG {
@behitek
behitek / teencode.txt
Last active September 27, 2024 08:28
Danh sách một số teencode phổ biến thống kê từ dữ liệu
ctrai con trai
khôg không
bme bố mẹ
cta chúng ta
mih mình
mqh mối quan hệ
cgai con gái
nhữg những
mng mọi người
svtn sinh viên tình nguyện