Skip to content

Instantly share code, notes, and snippets.

View syuilo's full-sized avatar
🥺

syuilo syuilo

🥺
  • Earth
  • 04:07 (UTC +09:00)
View GitHub Profile
@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
}
@kb10uy
kb10uy / yobikomikun.hsp
Created December 10, 2018 12:07
ゲーミング呼び込み君
font msgothic, 40
repeat
redraw 2
color 40, 40, 40
circle 110, 180, 530, 300
//color 40, 80, 40
hsvcolor cnt \ 192, 255, 60
circle 130, 200, 510, 280
pos 160, 220