This file contains 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
[*.js] | |
indent_style = space | |
indent_size = 2 |
This file contains 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
const a = [1, 2, 4]; | |
const b = [1, 2, 3, 4]; | |
const c = [ 2, 3, 4]; | |
const _and = (a, b) => a.filter(v => b.includes(v)); | |
const and = (...values) => { | |
const first = (values.length > 0) ? values[0] : []; | |
return values.reduce((acc, v) => _and(acc, v), first); | |
}; |
This file contains 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
node_modules | |
This file contains 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
node_modules |
This file contains 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
.PHONY: all clean test | |
all: | |
ocamlfind ocamlopt -o main -package unix -linkpkg greeter.mli greeter.ml app.ml main.ml | |
ocamlfind ocamlopt -o test_greeter -package unix -linkpkg greeter.mli greeter.ml app.ml test_greeter.ml | |
clean: | |
rm test_greeter main greeter.cm* greeter.o app.cm* app.o test_greeter.cm* test_greeter.o main.cm* main.o | |
test: all |
This file contains 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
node_modules |
This file contains 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
[*.html,*.mjs,*.js] | |
indent_style = space | |
indent_size = 2 |