Skip to content

Instantly share code, notes, and snippets.

View netcan's full-sized avatar

Netcan netcan

View GitHub Profile
@netcan
netcan / StaticRefl.cpp
Created July 31, 2020 14:58
static reflection
/*************************************************************************
> File Name: StaticRefl.hpp
> Author: Netcan
> Descripton: StaticRefl implement
> Blog: http://www.netcan666.com
> Mail: 1469709759@qq.com
> Created Time: 2020-07-31 20:15
************************************************************************/
#include <type_traits>
#include <iostream>
@netcan
netcan / producerConsumer.c
Created December 19, 2016 11:04
producerConsumer
/*************************************************************************
> File Name: producerConsumer.c
> Author: Netcan
> Blog: http://www.netcan666.com
> Mail: 1469709759@qq.com
> Created Time: 2016-09-24 六 20:04:04 CST
************************************************************************/
#include <stdio.h> // 标准输入输出
#include <stdlib.h> // 标准库
#include <errno.h> // 错误码相关处理
@netcan
netcan / my_site.conf
Created December 2, 2016 11:17 — forked from lixingcong/my_site.conf
nginx autoindex timezone setting
location ^~ /demo {
alias /var/www/demo/;
autoindex on;
# set to on means use localtime
autoindex_localtime on;
# show size with unit 'MB' instead of 'Byte'
autoindex_exact_size off;
}