Skip to content

Instantly share code, notes, and snippets.

View libchaos's full-sized avatar
💭
I may be slow to respond.

libchaos libchaos

💭
I may be slow to respond.
View GitHub Profile
@betweenbrain
betweenbrain / read-files.js
Created December 5, 2016 22:35
Node.js read multiple files, write into one
var fs = require('fs');
var Promise = require('promise');
var promises = [];
var readline = require('readline');
var readFile = function (file) {
return new Promise(function (resolve, reject) {
var lines = [];
var rl = readline.createInterface({
input: fs.createReadStream('./logs/' + file)
@libchaos
libchaos / 0_reuse_code.js
Created February 27, 2017 07:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active June 21, 2024 16:57
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized