Skip to content

Instantly share code, notes, and snippets.

View behitek's full-sized avatar
😎

Hieu Nguyen Van behitek

😎
View GitHub Profile
@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:");
#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.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];
@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 / 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 / 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 / tf_serving.sh
Created May 18, 2017 11:37 — forked from jarutis/tf_serving.sh
Install Tensorflow Serving on Centos 7 (CPU)
sudo su
# Java
yum -y install java-1.8.0-openjdk-devel
# Build Esentials (minimal)
yum -y install gcc gcc-c++ kernel-devel make automake autoconf swig git unzip libtool binutils
# Extra Packages for Enterprise Linux (EPEL) (for pip, zeromq3)
yum -y install epel-release
@behitek
behitek / Main.cpp
Last active May 2, 2017 14:23
Gửi FB Anh Hai
#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
// Hang so e
// Duoc dung neu F(x) = 0 co chua e.
@behitek
behitek / main.cpp
Created April 29, 2017 14:38
Giải phương trình phi tuyến bằng nhiều phương pháp
#include <iostream>
#include <math.h>
using namespace std;
// the Euler constant
const double e = 2.718281828459;
@behitek
behitek / opensource.md
Last active April 28, 2017 03:48
Site mã nguồn mở