This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: all | |
OUTDIR=out | |
CFLAGS=-g -Wall | |
INCLUDES=-I../src | |
# 测试依赖内容 | |
OBJECTS=main.o adlist.o zmalloc.o | |
$(foreach i,$(OBJECTS),$(eval "$(OUTDIR)/$(subst .o,,$(i)).o:$(subst .o,,$(i)).c")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var readFile = function (fileName){ | |
return new Promise(function (resolve, reject){ | |
fs.readFile(fileName, function(error, data){ | |
if (error) reject(error); | |
resolve(data); | |
}); | |
}); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP error (lint), and make sure the code | |
* is PSR compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
* |
NewerOlder