Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Hi

Daijiro Wachi watilde

👋
Hi
View GitHub Profile
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
import Amplify from 'aws-amplify';
import awsconfig from './aws-exports';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import monitorErrors from './monitorErrors';
import monitorWebVitals from './monitorWebVitals';
View monitorWebVitals.js
import UAParser from 'ua-parser-js';
import { Analytics, AWSKinesisProvider } from 'aws-amplify';
import awsconfig from './aws-exports';
Analytics.configure({
AWSKinesis: {
region: awsconfig.aws_project_region,
bufferSize: 1000,
flushSize: 100,
flushInterval: 5000,
View monitorErrors.js
import * as StackTrace from 'stacktrace-js';
import UAParser from 'ua-parser-js';
import { Analytics, AWSKinesisProvider } from 'aws-amplify';
import awsconfig from './aws-exports';
Analytics.configure({
AWSKinesis: {
region: awsconfig.aws_project_region,
bufferSize: 1000,
flushSize: 100,
View console-issue-report.md

Describe the bug Building page shows duplicated tabs in Japanese and English at the same time, and the labels in English do not work.

To Reproduce Steps to reproduce the behavior:

  1. Go to Amplify console
  2. Select Japanese from footer
  3. See duplicated tabs and English tabs do not work

Expected behavior

View feature-request-draft.md

Title

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

Description

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

View coverage.md

meant

$ 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/lib.host:/home/daijiro/Developments/nodejs/node/out/Release/lib.target:$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/code_generator.py --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/lib.host:/home/daijiro/Developments/nodejs/node/out/Release/lib.target:$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: https://github.com/hiroppy/node-metrics
const fetch = require('node-fetch');
(async () => {
const url = 'https://nodejs.org/metrics/summaries/total.csv'
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
View hi.sh
grep -rl -e Daijiro -e watilde $(dirname $(dirname $(which npm))/$(readlink $(which npm)))/../../