Skip to content

Instantly share code, notes, and snippets.

View syuilo's full-sized avatar
🥺

syuilo syuilo

🥺
  • Earth
  • 16:29 (UTC +09:00)
View GitHub Profile
@marihachi
marihachi / misskey_pages_doc.md
Last active January 12, 2020 12:11
Misskey Pagesで使われるAiScript(AST)についてのドキュメント

2020/01/12時点の内容です。
間違いや表現の訂正、内容の追加等ある場合はコメントからお願いします。

ASTメモ

全てのオブジェクトはidとtypeを持つ。
リテラルのオブジェクトはvalueを持つ。
関数コールのオブジェクト(ブロック)は配列argsとvalueを持ち、valueは常にnull(?)
ルート配列直下のオブジェクト(変数)は追加でnameを持つ。

リテラルタイプ

@marihachi
marihachi / dependencyResolution.ts
Last active July 2, 2020 20:29
モジュール間の依存関係を解決してみる実験
/*
* MIT License
* (c) 2019 marihachi.
*/
interface Edge {
src: number;
dest: number;
}
@SapphicCode
SapphicCode / artfixer.py
Created August 24, 2019 16:33
A simple program to walk a filesystem for cover.jpg files and attach them to .mp3 files in the same folder
#!/usr/bin/env python
import argparse
import os
from mutagen import id3
def read_file(path) -> bytes:
with open(path, 'rb') as f:
const CHARS = '0123456789abcdef';
function getTime(time: number) {
if (time < 0) time = 0;
if (time === 0) {
return CHARS[0];
}
time += 0x800000000000;
@YuzuRyo61
YuzuRyo61 / Environment.txt
Created April 6, 2019 14:51
Misskey PostgreSQL beta version report file (2019/04/06)
===========
Environment Information
===========
Base OS: Ubuntu 18.04 (Bionic Beaver) [Vagrant version]
Vagrant Box Information: https://app.vagrantup.com/ubuntu/boxes/bionic64
Package version:
nodejs: 11.13.0
npm: 6.7.0
yarn: 1.15.2
redis: 4.0.9
@YuzuRyo61
YuzuRyo61 / Environment.txt
Created April 4, 2019 08:50
Misskey PostgreSQL beta version report file
===========
Environment Information
===========
Base OS: Ubuntu 18.04 (Bionic Beaver) [Vagrant version]
Vagrant Box Information: https://app.vagrantup.com/ubuntu/boxes/bionic64
Package version:
nodejs: 11.13.0
npm: 6.7.0
yarn: 1.15.2
redis: 4.0.9
@nishina555
nishina555 / skill-sheet.md
Last active October 3, 2024 08:00
エンジニアスキルシート

(最終更新日: 2023年5月10日)

得意分野

業務 Webアプリケーション開発

2.6 Internal Change: Reverting nextTick to Always Use Microtask

The Original Problem

When Vue detects data mutation, it asynchronously defer DOM updates to the next "tick" so that multiple mutations trigger only one update cycle. In versions before 2.5, Vue has been deferring updates using what is known as the "Microtask" (as explained in this blog post).

This works fine in most situations, but we discovered an edge case:

  1. Given two nested elements, "outer" and "inner";
  2. "inner" has a click event handler which triggers an update
@tosuke
tosuke / misskey-following-list.js
Created January 28, 2019 07:17
misskeyのAPI使ってフォローリスト生成するやつ
const axios = require('axios')
const fs = require('fs')
const originHost = 'misskey.xyz'
const i = 'YOUR_TOKEN'
const origin = `https://${originHost}/api`
async function main() {
const status = await fetchStatus()
@GoNZooo
GoNZooo / text.ts
Created December 24, 2018 21:48
Phantom type variant in TypeScript
interface PlainText extends String {
__plaintext__: never
}
interface Base64Encoded extends String {
__base64Encoded__: never
}
interface Encrypted extends String {
__encrypted__: never
}