Skip to content

Instantly share code, notes, and snippets.

View HuangXiZhou's full-sized avatar
:shipit:
摸鱼中(working)...

Amigooo HuangXiZhou

:shipit:
摸鱼中(working)...
View GitHub Profile
@sbrl
sbrl / main.js
Created May 26, 2020 19:35
Multi-process line-by-line reading from a single pipe in Node.js
"use strict";
import EventEmitter from 'events';
import child_process from 'child_process';
/**
* Helper method that waits for an event to be fired on a given object.
* @param {EventEmitter} obj The object that will fire the event - must inherit from EventEmitter
* @param {string} event_name The name of the event to wait for.
* @return {Promise} A promise that resolves when the specified event is fired on the given object.
@willprice
willprice / .travis.yml
Last active June 15, 2024 04:29
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env: