Skip to content

Instantly share code, notes, and snippets.


Daijiro Wachi watilde

View GitHub Profile


Ask users if it's ok to stop the service when disconnecting


Is your feature request related to a problem? Please describe.

Disconnecting branches stopped a service I'm working on which was not expected. I was expecting the service will be kept hosting as is.

Describe the solution you'd like



$ nyc --reporter=lcov --reporter=text npm run test

> meant@1.0.2 test /Users/daijirow/Developments/watilde/meant
> standard && tap test.js

test.js ............................................... 4/4 2s
total ................................................. 4/4
View result.txt
make -C out BUILDTYPE=Release V=0
touch 5d93f6fffd8517460d7d45f107df505cb5f99018.intermediate
LD_LIBRARY_PATH=/home/daijiro/Developments/nodejs/node/out/Release/$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/daijiro/Developments/nodejs/node/out/Release/obj/gen/src/node/inspector/protocol; python tools/inspector_protocol/ --jinja_dir tools/inspector_protocol --output_base "/home/daijiro/Developments/nodejs/node/out/Release/obj/gen/src/" --config src/inspector/node_protocol_config.json
touch 4616ff230b1ee50cd835a6fbe18a7c3ac19cc841.intermediate
LD_LIBRARY_PATH=/home/daijiro/Developments/nodejs/node/out/Release/$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /home/daijiro/Developments/nodejs/node/out/Release/obj/gen/torque-output-root/torque-generated /home/daijiro/Developments/nodejs/node/out/Release/
View Total Number of Node.js Downloads.js
// Refs:
const fetch = require('node-fetch');
(async () => {
const url = ''
const csv = await fetch(url).then((res) => res.text());
let total = 0;
csv.split('\n').map(a => a.split(',')).slice(1, -1).forEach((item) => {
total += Number(item[1])
View troubleshooting.console
net stop wuauserv
rename C:\Windows\SoftwareDistribution SoftwareDistribution.back
net start wuauserv
net stop wuauserv
rename C:\Windows10Upgrade Windows10Upgrade.back
net start wuauserv
net stop wuauserv
rm /s /q C:\Windows10Upgrade.back
grep -rl -e Daijiro -e watilde $(dirname $(dirname $(which npm))/$(readlink $(which npm)))/../../
View day-1.js
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
View test.js
const request = require('request')
.on('response', (response) => {
console.log(response.statusCode) // => 200
View 2975.console
$ npm install browser-env eslint
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN c@1.0.0 No description
npm WARN c@1.0.0 No repository field.
+ eslint@5.10.0
+ browser-env@3.2.5
added 194 packages from 252 contributors and audited 316 packages in 14.331s
found 0 vulnerabilities
View foo.json
"Working Directory" : "\/Users\/watilde",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
"Rows" : 25,
"Ansi 11 Color" : {
You can’t perform that action at this time.