分散SNS Advent Calendar 2018 Fediverseとその他の分散サービスの歴史とプロジェクトを適当に書いておくだけの記事
ジャンル | マイクロブログ |
---|---|
読み | ラコニカ(?) |
開発者 | Evan Prodromou(Control Yourself社) |
言語 | PHP |
分散SNS Advent Calendar 2018 Fediverseとその他の分散サービスの歴史とプロジェクトを適当に書いておくだけの記事
ジャンル | マイクロブログ |
---|---|
読み | ラコニカ(?) |
開発者 | 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; |
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 |
interface PlainText extends String { | |
__plaintext__: never | |
} | |
interface Base64Encoded extends String { | |
__base64Encoded__: never | |
} | |
interface Encrypted extends String { | |
__encrypted__: never | |
} |
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() |
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:
=========== | |
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 |
=========== | |
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; |