Skip to content

Instantly share code, notes, and snippets.

View syuilo's full-sized avatar
🥺

syuilo syuilo

🥺
  • Earth
  • 13:26 (UTC +09:00)
View GitHub Profile
@nagiept
nagiept / distributed_service_catalog.md
Last active October 1, 2023 23:36
Distributed Service Catalog 2018

Distributed Service Catalog 2018

分散SNS Advent Calendar 2018 Fediverseとその他の分散サービスの歴史とプロジェクトを適当に書いておくだけの記事

Progects list

Laconica

ジャンル マイクロブログ
読み ラコニカ(?)
開発者 Evan Prodromou(Control Yourself社)
言語 PHP
export default class Trie {
private tree: any = {};
public add(s: string): void {
let cur = this.tree;
for (const c of s) {
if (!cur[c]) cur[c] = { isString: false };
cur = cur[c];
}
cur.isString = true;
@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
@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
}
@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()

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
@nishina555
nishina555 / skill-sheet.md
Last active October 3, 2024 08:00
エンジニアスキルシート

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

得意分野

業務 Webアプリケーション開発
@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
@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
const CHARS = '0123456789abcdef';
function getTime(time: number) {
if (time < 0) time = 0;
if (time === 0) {
return CHARS[0];
}
time += 0x800000000000;