Skip to content

Instantly share code, notes, and snippets.

View behitek's full-sized avatar
😎

Hieu Nguyen Van behitek

😎
View GitHub Profile
@behitek
behitek / GensimExample.py
Created June 9, 2017 02:58
GensimExample.py
import sys
import gensim
from gensim.models import word2vec
def w2v(s1, s2, wordmodel):
if s1 == s2:
return 1.0
@behitek
behitek / anpr.md
Last active August 7, 2017 09:50
Documents for setup anpr in ubuntu operating system

Packages Required

OpenCV version >= 3.0.0

vlc.h

sudo apt-get install libvlc-dev

curl.h

sudo apt-get install libcurl4-openssl-dev
@behitek
behitek / CodeTemplate.cpp
Last active January 30, 2018 02:30
acm note of hieunv1996
#include <bits/stdc++.h>
#define fi first
#define se second
#define _all(v) v.begin(), v.end()
#define __(v) memset(v,0,sizeof(v))
#define arrayin(a,n) for(int i=0;i<n;i++) cin>>a[i];
#define _for(i,a,b) for (int i=(a),_b_=(b);i<_b_;i++)
#define _fod(i,a,b) for (int i=(a),_b_=(b);i>_b_;i--)
#define arrayout(a,n) for(int i=0;i<n;i++) cout<<a[i]<<" ";cout<<"\n";
@behitek
behitek / B.cpp
Last active November 14, 2017 03:38
#include <bits/stdc++.h>
#define _for(i,a,b) for (int i=(a),_b_=(b);i<_b_;i++)
#define _fod(i,a,b) for (int i=(a),_b_=(b);i>_b_;i--)
#define _it(i,v) for (typeof((v).begin()) i = (v).begin(); i != (v).end(); ++i)
#define _all(v) v.begin(), v.end()
#define __(v) memset(v,0,sizeof(v))
#define fi first
#define se second
#define arrayin(a,n) for(int i=0;i<n;i++) cin>>a[i];
#include <stdio.h>
int main(){
int m,n;
int a[100][100];
printf("\nNhap so hang, so cot: ");
scanf("%d%d", &m, &n);
// Nhap mang 2 chieu
for(int i = 0;i < m;i++){
for(int j = 0; j < n;j++){
@behitek
behitek / Bài tập nhập môn tin học.md
Last active May 23, 2019 15:23
Lời giải một số bài tập tổng hợp kiến thức môn nhập môn tin học

Bài 1 Tính tổng bình phương các số lẻ từ 1 đến n

#include<stdio.h>
#include<conio.h>
main()
{
    int i,s=0,n;
    printf("Nhap n:");
@behitek
behitek / all-vietnamese-syllables.txt(Gõ dấu kiểu cũ)
Last active February 19, 2022 18:58 — forked from hieuthi/all-vietnamese-syllables.txt
All possibly existent Vietnamese syllables, created by combine all onsets with all rimes. More information can be found at: http://hieuthi.com/blog/2017/03/21/all-vietnamese-syllables.html
a
ai
am
an
ang
anh
ao
au
ay
ba
@behitek
behitek / notes.md
Last active October 18, 2018 08:48
Regex loại bỏ dấu tiếng việt - Chuyển tiếng việt có dấu thành không dấu

Regex loại bỏ dấu tiếng việt, chuyển tiếng việt có dấu thành không dấu

Author: Nguyễn Văn Hiếu

Des: Loại bỏ dấu tiếng Việt trên ngôn ngữ Python

Check out my blog: https://nguyenvanhieu.vn

import re

pats = [
 'á|à|ả|ã|ạ|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ',
@behitek
behitek / QLSV.cpp
Last active November 5, 2018 02:41
Chương trình quản lý sinh viên - Bài tập Struct trong lập trình C
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
struct SinhVien{
char ten[30];
char gt[5];
int age;
float dT, dL, dH;
@behitek
behitek / trie.cpp
Created November 17, 2018 02:12 — forked from indrasaputra/trie.cpp
Trie
#include <cstdio>
#include <iostream>
#include <cstring>
#include <vector>
#include <cstdlib>
#include <algorithm>
#include <map>
#include <utility>
#include <cctype>