Skip to content

Instantly share code, notes, and snippets.

View congdanhqx-zz's full-sized avatar

DOAN Tran Cong Danh congdanhqx-zz

View GitHub Profile
@congdanhqx-zz
congdanhqx-zz / .travis.yml
Created April 28, 2016 03:41
Building Modern C++ with Travis CI
language: generic
cache:
apt: true
matrix:
include:
- os: linux
env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
addons:
#include <memory>
int a;
int b;
void swap1(void)
{
int t = a;
a = b;
b = t;
}
@congdanhqx-zz
congdanhqx-zz / concept.cpp
Created July 25, 2016 18:28
C++ Concepts simpliest example
#include <list>
#include <iostream>
#include <algorithm>
#if defined(__cpp_concepts) && __cpp_concepts >= 201500
template<typename T>
concept bool HasMemberNamedTestConcept = requires(T t) {
t.test;
};
@congdanhqx-zz
congdanhqx-zz / .vimrc
Last active August 5, 2016 08:00
.vimrc
set nocompatible " be vimproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required