Skip to content

Instantly share code, notes, and snippets.

View finaldie's full-sized avatar

Yuzhang Hu finaldie

View GitHub Profile
@finaldie
finaldie / async_mongo_lua_reponse.c
Created February 5, 2015 03:11
mongo lua response
void db_async_response(int id, mongo_cursor* cursor)
{
g_vars.db_async_query_res_count++;
lua_getglobal(L, "DBAsyncFindResponse");
// create a return table
int table_size = 0;
lua_pushnumber(L, id);
lua_createtable(L, 0, 0);
@finaldie
finaldie / Makefile_example_without_@
Last active December 28, 2015 11:58
An example Makefile not using @
all:
@echo "hello Makefile"
---
# BasedOnStyle: Google
AccessModifierOffset: -1
ConstructorInitializerIndentWidth: 4
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: true