profile
viewpoint
Yoshiya Hinosawa kt3k @monoidcc Tokyo, Japan https://kt3k.org A web dev in 🇯🇵. A partner of @seqsense. Contributing to @denoland. Maintaining @c3js and @capsidjs.,

capsidjs/capsid 43

:pill: Declarative DOM programming library. Lightweight (1.7 kB).

kt3k/arrowkeys 5

Arrowkey events in browser

capsidjs/todomvc 2

:ballot_box_with_check: TodoMVC in capsid :pill:

kt3k/action-selector 1

Select actions from the given configuration

kt3k/ajax-view 1

No javascript API rendering

kt3k/anarchy-golf-old-solutions 1

my old solutions of anarchy golf. most of things don't make sense anymore even to me.

capsidjs/capsid-module 0

:scroll: The definition of `capsid module` :pill:

iyoring/iyoring.github.io 0

Homepage of iyo

kt3k/- 0

にゃーん

Pull request review commentdenoland/deno

fix(op_crates/web): fix URLSearchParams, malformed url handling

   }    function decodeSearchParam(p) {-    return decodeURIComponent(p.replace(/\+/g, " "));+    const s = p.replace("+", " ");

Thank you! I added a test case to prevent this error happening again.

kt3k

comment created time in 19 minutes

PullRequestReviewEvent

push eventkt3k/deno

Yoshiya Hinosawa

commit sha 3fdd02ebcd4d492d3c5817ad0bb31290d930bd10

test(URLSearchParams): add test case of multiple spaces

view details

push time in 4 hours

push eventkt3k/deno

Yoshiya Hinosawa

commit sha ef1516b7db3d255f9c3805305572d3a5d91bcc7b

Update op_crates/web/11_url.js Co-authored-by: Evan <c4t@tuta.io>

view details

push time in 4 hours

push eventkt3k/deno

Yoshiya Hinosawa

commit sha 1a5e5592832de5f3824bda1affee32c15212d08f

Update op_crates/web/11_url.js Co-authored-by: Evan <c4t@tuta.io>

view details

push time in 4 hours

Pull request review commentdenoland/deno

fix(op_crates/web): fix URLSearchParams, malformed url handling

   }    function decodeSearchParam(p) {-    return decodeURIComponent(p.replace(/\+/g, " "));+    const s = p.replace("+", " ");++    return s.replace(/(%[0-9a-f]{2})+/gi, (matched) => {+      const buf = [];+      for (let i = 0; i < matched.length; i += 3) {+        buf.push(parseInt(matched.slice(i + 1, i + 3), 16));+      }+      return new TextDecoder().decode(new Uint8Array(buf));+    });

Thanks!

kt3k

comment created time in 4 hours

PullRequestReviewEvent

PR opened denoland/deno

fix(op_crates/web): fix URLSearchParams, malformed url handling

This PR fixes the handling of Malformed URL of URLSearchParams constructor. As reported in #8004 the use of decodeURIComponent function causes it throw for malformed URLs. This PR replaces the use of decodeURIComponent and keep the malformed search params as is.

fixes #8004

+35 -1

0 comment

2 changed files

pr created time in 13 hours

create barnchkt3k/deno

branch : fix/url-search-params-malformed-url

created branch time in 13 hours

startedashtuchkin/iconv-lite

started time in 15 hours

startedtibetty/decodeUriComponent

started time in 17 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 481b8ed6bab1f77a817be359e590bf9191a607b2

docs: add badge

view details

push time in 19 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 2ed4139a4421b3c5411f799796d57afaccb9a4ba

dist

view details

push time in 20 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha b63d917e7f94234954bb99a52c69ce45f1bcc491

refactor: move create cypress command routines

view details

push time in 20 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha c43c88bbc35a40f558bd076dd7ad0c3371254248

chore: add github actions

view details

push time in 20 hours

push eventkt3k/lepont

Yoshiya Hinosawa

commit sha 65192098e0c08ce9761e73ca92a4f282b00115ad

chore: update node

view details

push time in 20 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 944e296c741855278d4b7ec5532a0b807c56950c

chore: add github actions

view details

push time in 20 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha d27dc10d7ff9400fc794c50a1eb94a638cbec29a

chore: add github actions

view details

push time in 20 hours

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 84049edc4ec52f9741a768d451d6de8a949f7068

clean up

view details

push time in 20 hours

delete branch denolib/awesome-deno

delete branch : feat/add-postcss

delete time in a day

PR opened denolib/awesome-deno

Add postcss
+1 -0

0 comment

1 changed file

pr created time in a day

create barnchdenolib/awesome-deno

branch : feat/add-postcss

created branch time in a day

startedpostcss/postcss-deno

started time in a day

startedgtanner/qrcode-terminal

started time in 2 days

startedAlpacaBi/qrcode_terminal

started time in 2 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 25a2afbc59ec18a4f5b3a29e05fe7e259dc5d292

chore: update yarn.lock

view details

push time in 2 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha ccf1f99784fc87914a6dfc2c340840208fde46cc

clean up

view details

Yoshiya Hinosawa

commit sha 000f945b9690c26fb02dba379e6b05460e039a0b

chore: update cypress to v4

view details

Yoshiya Hinosawa

commit sha 8489e48ca7be9e9e857b107057a84ea94eb58c7d

chore: cypress 5

view details

push time in 2 days

startedmatryer/moq

started time in 2 days

startedrsms/estrella

started time in 2 days

startedrsms/markdown-wasm

started time in 2 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 752bc011e10f24df3dab5f12ae5e649fe7dcae90

clean up

view details

push time in 3 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 5b0e7ebc8547c4ee8622c16937ff59d5e44a3410

clean up

view details

push time in 3 days

push eventdenolib/awesome-deno

X

commit sha 7ab9c65ee4a3b15c42aeebea8dbc3ce16ba60a9d

Add Aleph.js module (#232)

view details

push time in 4 days

PR merged denolib/awesome-deno

Add Aleph.js module

plaese check https://github.com/postui/aleph.js or https://alephjs.org

+1 -0

0 comment

1 changed file

ije

pr closed time in 4 days

PullRequestReviewEvent

startedpostui/aleph.js

started time in 4 days

starteddenoland/deno_doc

started time in 4 days

delete branch kt3k/deeeet.com

delete branch : patch-1

delete time in 4 days

PR opened tcnksm/deeeet.com

Fix typo
  • Artiifact -> Artifact
+1 -1

0 comment

1 changed file

pr created time in 4 days

push eventkt3k/deeeet.com

Yoshiya Hinosawa

commit sha a42d226170f92fb91326bc8725ef9257ca3d72e8

Fix typo

view details

push time in 4 days

fork kt3k/deeeet.com

@tcnksm writes blog

http://deeeet.com/

fork in 4 days

push eventkt3k/shuho

Yoshiya Hinosawa

commit sha 50131372b6d02aff4792c769c34e5344b9f0babe

chore: update [skip ci]

view details

push time in 5 days

push eventkt3k/shuho

Yoshiya Hinosawa

commit sha 22fddc6ff2e29e501a99534a76a971e31c4baa15

10-12

view details

push time in 5 days

delete branch kt3k/deno

delete branch : docs/std-datetime

delete time in 5 days

startedhashicorp/waypoint

started time in 5 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 71790e76227848ec2bf11a6f1d38d3951e496228

chore: remove framework specific workarounds

view details

push time in 5 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha b3245cd5e28930006339ce24b076786eebcf67fa

add cypress test suites

view details

push time in 5 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha d32fdb27f6c7e0819e139d112147132be3fe2591

change dist dir

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha d2eb02f2f46f23a94080eb18e231d024d55e3ffb

add dist

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 87310ef0f447765a39b8ca733b3407013301fa18

fix to pass the cypress test

view details

push time in 6 days

startedbahmutov/start-server-and-test

started time in 6 days

startedYash-Handa/logo-ls

started time in 6 days

push eventmonoidcc/Tententen

Yoshiya Hinosawa

commit sha 4cab1ccb0972fd73b4cd9904ccc340faf20b81e5

rename main -> main-screen

view details

Yoshiya Hinosawa

commit sha 93b27d666449107809d0194d3da1bdc6ce32c525

renames

view details

push time in 6 days

startedJunichiSugiura/junichi.dev

started time in 6 days

starteddimasaryo/todomvc-test

started time in 6 days

push eventcapsidjs/capsid

Yoshiya Hinosawa

commit sha 9288b43f5f23430978e4534b787b62eaddea9743

Update README.md

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha dee426e2e464aba6ae31726a1232702bd8e1d061

fmt

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 880477cbe5ddb10d53b93ab3bb8408ce5ba4108a

finish major features

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha d9f6519097eae0b9ee21a773fd58d30902656dd1

update

view details

push time in 6 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha 458423c26342890da9c6b909df73677a865a6497

fmt

view details

push time in 7 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha f25304218dcfe8630a7431f8f36ca56e69d6b660

wip

view details

push time in 7 days

push eventcapsidjs/todomvc2

Yoshiya Hinosawa

commit sha bce0326805da5b61092b2adf4e4bcaa76d968f88

fmt

view details

push time in 7 days

create barnchcapsidjs/todomvc2

branch : main

created branch time in 7 days

created repositorycapsidjs/todomvc2

TodoMVC of capsid.js

created time in 7 days

starteduhyo/castella

started time in 7 days

startedflatiron/director

started time in 7 days

push eventmonoidcc/Tententen

Yoshiya Hinosawa

commit sha 39e1d63235cd4d320b4c53d982875864beaa5f1c

add toast

view details

push time in 7 days

startedTheWizardBear/maze_generator

started time in 8 days

startedGoogleChromeLabs/react-adaptive-hooks

started time in 8 days

release seqsense/s3sync

v1.5.1

released time in 9 days

created tagseqsense/s3sync

tagv1.5.1

♻️ Golang utility for syncing between s3 and local, similar to `aws s3 sync`

created time in 9 days

push eventseqsense/s3sync

Atsushi Watanabe

commit sha 3407853777f960ded7bc43c904097aef8489c8e5

Fix single file sync source path (#78) * Add test to reproduce the bug * Fix single file sync source path

view details

push time in 9 days

delete branch seqsense/s3sync

delete branch : fix-non-cwd-single-file-sync

delete time in 9 days

PR merged seqsense/s3sync

Fix single file sync source path

Fix #75

+19 -5

1 comment

3 changed files

at-wat

pr closed time in 9 days

issue closedseqsense/s3sync

Sync single file on non-current directory failed

$ uaws-s3-sync work/a-file.tar.gz s3://test-bucket/a-file.tar.gz
2020/10/08 17:50:16 Uploading a-file.tar.gz to s://test-bucket/a-file.tar.gz
error: open a-file.tar.gz: no such file or directory

closed time in 9 days

kamatama41
PullRequestReviewEvent

delete branch kt3k/deno

delete branch : fix/test-console-functions

delete time in 10 days

issue commentdenoland/deno

Typos in `consoleTestStringifyFunctionWithPrototypeRemoved` unit test

@solson Thank you for catching this! That was a mistake.

solson

comment created time in 10 days

PR opened denoland/deno

test(console): fix the test cases of function inspections

This PR fixes the test cases of the inspection of functions.


Fixes https://github.com/denoland/deno/issues/7962

+2 -2

0 comment

1 changed file

pr created time in 10 days

create barnchkt3k/deno

branch : fix/test-console-functions

created branch time in 10 days

pull request commentdenoland/deno

Revert "feat: add alert, confirm, and prompt (#7507)"

Security concern doesn't apply anymore because the same attack can be done with exiting APIs (such as Deno.stdin.readSync).

I agree with his second argument ( there is no reasonable way to use alert confirm prompt in a isomorphic way), but I believe this is not strongly against the addition of APIs.

I'd like @kitsonk to review my comment at https://github.com/denoland/deno/issues/4257#issuecomment-672009353. My point (motivation) of this addition is that these are very useful for the beginners and learners. Maybe nobody use these in serious / production environment, but these helps learners easily interact with Deno APIs in casual manner (and I hope that promote the use of Deno especially for newcomers)

bartlomieju

comment created time in 11 days

startednvie/itertools.js

started time in 11 days

push eventkt3k/shuho

Yoshiya Hinosawa

commit sha 78598bc48485289f3ece7d675a34f71694e4102b

chore: update [skip ci]

view details

push time in 11 days

push eventkt3k/shuho

Yoshiya Hinosawa

commit sha 2b4ad9cd2377e5420419085ff44ffdbc66259c2b

10-05

view details

push time in 11 days

issue commentcapsidjs/capsid

Guide

css guide with emotion example

kt3k

comment created time in 11 days

issue closedcapsidjs/capsid

@pub async method doesn't work

@\pub decorator doesn't work with the following situation.

class A {
  @pub('a')
  async foo() {
  }
}

closed time in 11 days

kt3k

release capsidjs/capsid

v1.7.0

released time in 11 days

push eventcapsidjs/capsid

Yoshiya Hinosawa

commit sha 30a3982da13c49392beedbf5bd9a535ba5abf522

Update README.md

view details

push time in 11 days

startedcallstack/parcel-plugin-linaria

started time in 11 days

push eventmonoidcc/Tententen

Yoshiya Hinosawa

commit sha 1849d5097f17bffafc1b52762004b0ed38cf0259

add toast

view details

Yoshiya Hinosawa

commit sha 020aeff59c72bb32f864647e235a174b1568bc74

update design

view details

push time in 12 days

startedtabatkins/bikeshed

started time in 12 days

push eventkt3k/deno

Yoshiya Hinosawa

commit sha 0cdf532f4ed026e5fc714d9df024bc763b3b0024

test: add test of entering 'yes' to confirm funtion

view details

push time in 12 days

Pull request review commentdenoland/deno

feat: add alert, confirm, and prompt

+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.+((window) => {+  const { stdin, stdout } = window.__bootstrap.files;+  const { isatty } = window.__bootstrap.tty;+  const LF = "\n".charCodeAt(0);+  const encoder = new TextEncoder();+  const decoder = new TextDecoder();++  function alert(message = "Alert") {+    if (!isatty(stdin.rid)) {+      return;+    }++    stdout.writeSync(encoder.encode(`${message} [Enter] `));++    readLineFromStdinSync();+  }++  function confirm(message = "Confirm") {+    if (!isatty(stdin.rid)) {+      return false;+    }++    stdout.writeSync(encoder.encode(`${message} [y/N] `));++    const answer = readLineFromStdinSync();++    return answer === "Y" || answer === "y";+  }++  function prompt(message = "Prompt", defaultValue) {+    defaultValue ??= null;++    if (!isatty(stdin.rid)) {+      return null;+    }++    stdout.writeSync(encoder.encode(`${message} `));++    if (defaultValue) {+      stdout.writeSync(encoder.encode(`[${defaultValue}] `));+    }++    return readLineFromStdinSync() || defaultValue;+  }++  function readLineFromStdinSync() {+    const c = new Uint8Array(1);+    const buf = [];++    while (true) {+      const n = stdin.readSync(c);+      if (n === 0 || c[0] === LF) {+        break;+      }+      buf.push(c[0]);+    }+    return decoder.decode(new Uint8Array(buf));+  }

The above while-loop reads from stdin until it finds LF. So it reads the entire single line. The pattern check against y or Y is done in the above confirm function (it checks against the entire line).

kt3k

comment created time in 12 days

PullRequestReviewEvent

pull request commentdenolib/awesome-deno

Add OctoLinker

OctoLinker looks great but it doesn't seem a tool specific to Deno. So I think it should belong to awesome-github or awesome-chrome.

stefanbuck

comment created time in 12 days

startedshokai/node-asearch

started time in 12 days

startedKitura/Kitura

started time in 12 days

pull request commentdenoland/deno

feat: add alert, confirm, and prompt

@bartlomieju Thank you for the feedbacks! Rebased the branch! I'll add the handling (and tests) of yes, Yes, etc in confirm function a little later.

kt3k

comment created time in 12 days

Pull request review commentdenoland/deno

feat: add alert, confirm, and prompt

+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.+((window) => {+  const { stdin, stdout } = window.__bootstrap.files;+  const { isatty } = window.__bootstrap.tty;+  const LF = "\n".charCodeAt(0);+  const encoder = new TextEncoder();+  const decoder = new TextDecoder();++  function alert(message = "Alert") {+    if (!isatty(stdin.rid)) {+      return;+    }++    stdout.writeSync(encoder.encode(`${message} [Enter] `));++    readLineFromStdinSync();+  }++  function confirm(message = "Confirm") {+    if (!isatty(stdin.rid)) {+      return false;+    }++    stdout.writeSync(encoder.encode(`${message} [y/N] `));++    const answer = readLineFromStdinSync();++    return answer === "Y" || answer === "y";+  }++  function prompt(message = "Prompt", defaultValue) {+    defaultValue ??= null;++    if (!isatty(stdin.rid)) {+      return null;+    }++    stdout.writeSync(encoder.encode(`${message} `));++    if (defaultValue) {+      stdout.writeSync(encoder.encode(`[${defaultValue}] `));+    }++    return readLineFromStdinSync() || defaultValue;+  }++  function readLineFromStdinSync() {+    const c = new Uint8Array(1);+    const buf = [];++    while (true) {+      const n = stdin.readSync(c);+      if (n === 0 || c[0] === LF) {+        break;+      }+      buf.push(c[0]);+    }+    return decoder.decode(new Uint8Array(buf));+  }

Currently only y and Y are interpreted as true. But maybe we should consider words like yes, Yes, YES as true as well?

kt3k

comment created time in 12 days

PullRequestReviewEvent
more