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
'use strict'; | |
const fs = require('fs'); | |
module.exports = (path, solver) => { | |
fs.readdir(path, (err, childs) => { | |
let prom = childs.map((child) => { | |
return new Promise((r, j) => { | |
fs.stat(`${path}/${child}`, (err, stats) => { | |
if (stats.isDirectory()){ |
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
@ECHO OFF | |
set app_title=Expresso - An express generator invoker | |
set script_title=NodeJS Express Server | |
set script_name=server.bat | |
title %app_title% | |
for %%f in (%cd%) do set workd=%%~nxf | |
echo Generating batch output for /%workd%/ |
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
let f = (n) => [...n].map((x) => ~x.charCodeAt(0)).map((x) => String.fromCharCode(-x)).join(''); |
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
% You should include tcolorbox libraries adn raster, with: | |
% \usepackage[raster]{tcolorbox} | |
% Also define your own colors or use from xcolor | |
% Usage is dead simple: \badge{color_and_verb}{relative_path} | |
% The name of the color is used as left part text! You should define aliases, like: | |
% \definecolor{POST}{HTML}{97CA00} | |
% \definecolor{GET}{HTML}{007EC6} | |
% \definecolor{PUT}{HTML}{DFB317} | |
% \definecolor{PATCH}{HTML}{9F9F9F} |
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
#!/home/lenovo/.node/bin/node | |
/** | |
* Regenrates the default repositories given a model. | |
*/ | |
const fs = require('fs'); | |
const program = require('commander'); | |
const path = require('path'); | |
const author = 'Pablo Blanco Celdran'; | |
program |
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
#!/home/lenovo/.node/bin/node | |
/** | |
* Regenrates the default repositories given a model. | |
*/ | |
const fs = require('fs'); | |
const program = require('commander'); | |
const path = require('path'); | |
const author = 'Pablo Blanco Celdran'; | |
program |
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
/** | |
* Typesafe tuple making function. | |
*/ | |
/** | |
* Creates a 0-tuple | |
*/ | |
export function tuple(): []; | |
/** |
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
/* | |
Copyright Pablo Blanco Celdrán 2020 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in 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
/* | |
Copyright Pablo Blanco Celdrán 2020 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |