Skip to content

Instantly share code, notes, and snippets.

View tkusano's full-sized avatar

Takayuki KUSANO tkusano

View GitHub Profile
@tkusano
tkusano / url-test-case.md
Created March 7, 2024 07:06
URL with non US-ASCII and percent-encoded URLs test cases for Bluesky
--- src/locale/locales/ja/messages.po 2023-12-14 22:23:18.941911910 +0900
+++ messages.po.new 2023-12-15 00:07:35.060946295 +0900
@@ -15,7 +15,7 @@
#: src/view/shell/desktop/RightNav.tsx:160
msgid "{0, plural, one {# invite code available} other {# invite codes available}}"
-msgstr ""
+msgstr "{0, plural, other {# 個の招待コードが利用可能}}"
#: src/view/com/modals/Repost.tsx:44
--- messages.po.orig 2023-12-14 11:27:05.419249133 +0900
+++ messages.po 2023-12-14 21:07:39.292591801 +0900
@@ -27,7 +27,7 @@
#: src/view/shell/desktop/RightNav.tsx:143
msgid "{invitesAvailable, plural, one {Invite codes: # available} other {Invite codes: # available}}"
-msgstr ""
+msgstr "{invitesAvailable, plural, other {招待コード: # 個利用可能}}"
#: src/view/screens/Settings.tsx:407
@tkusano
tkusano / message.po
Created December 14, 2023 08:18
src/locale/locales/ja/message.po for bluesky/social-app
msgid ""
msgstr ""
"POT-Creation-Date: 2023-11-22 17:10-0800\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: jp\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"

Keybase proof

I hereby claim:

  • I am tkusano on github.
  • I am tkusano (https://keybase.io/tkusano) on keybase.
  • I have a public key ASC_kjg3OiBuWCwKlWizMnhv6RwFZm_LbW4kBtYcfNxhfQo

To claim this, I am signing this object:

@tkusano
tkusano / Coco_Hayashi_recordings.sparql
Last active May 21, 2022 04:42
林鼓子がレコーディングした曲の一覧
PREFIX arl: <https://arl.jp/data/>
PREFIX arlc: <https://arl.jp/class/>
PREFIX arlp: <https://arl.jp/prop/>
PREFIX schema: <https://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?relDate ?relGName ?rec ?recNameS WHERE {
?relGroup rdfs:label ?relGroupName ;
arlp:date ?relGroupDate ;
@tkusano
tkusano / group-by-cv.py
Last active August 7, 2020 04:15
ディズニー ツイステッドワンダーランドのキャスト(声優)
#! /usr/bin/python3
import pprint
def group_by_cv(f):
cv = dict()
role = ''
for line in f.readlines():
line = line.strip()
if len(line) == 0:
@tkusano
tkusano / ubuntu-18.04-obs-eos80d-webcam.txt
Last active May 11, 2020 09:56
Ubuntu 18.04 + OBS Studio で EOS 80D を webcam として使う
$ sudo apt-get install gphoto2 v4l2loopback-utils
$ gphoto2 --abilities
カメラの性能 : Canon EOS 80D
シリアルポートのサポート : いいえ
USB サポート : はい
取り込みの選択 :
: 画像
: プレビュー
: Trigger Capture
セッティングのサポート : はい
@tkusano
tkusano / charms.sql
Created May 20, 2018 18:20
ちゃーむずが共演したイベントの一覧
WITH q AS (
SELECT count(e.event_id),e.event_id,e.name,e.start_time
FROM event e,actor a,performer p
WHERE ( a.name='永野愛理' OR a.name='山下七海' )
AND e.event_id=p.event_id
AND p.person_id=a.actor_id
GROUP BY e.event_id )
SELECT * FROM q WHERE count=2 ORDER BY q.start_time;
@tkusano
tkusano / AppleMobileBackup.log
Created September 20, 2016 13:40
Entries in console when "iPhone Disconnected Error During Restore" is occured
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|SocketStreamHandler.c:_SocketLogCallback| ERROR: SocketSend (data): error 32: Broken pipe
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|StreamHandler.c:_WriteFunc| ERROR: Error sending data: Can't send data
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLSendBytesAndDisconnectOnError| ERROR: Could not send data: 'Error writing length of data'
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLSendBytesAndDisconnectOnError| ERROR: Could not send data: 'StreamHandler is NULL'
2016/09/20 21:38:25.300 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLMainThreadMessagePortCallback| ERROR: Error creating components from read data: 'NULL data returned from read'
2016/09/20 22:26:52.680 AppleMobileBackup[465]: 465:2752512|SocketStreamHandler.c:_SocketLogCallback| ERROR: SocketRecv (data): return of 0 bytes
2016/09/20 22:26:52.680 AppleMobileBack