2020/01/12時点の内容です。
間違いや表現の訂正、内容の追加等ある場合はコメントからお願いします。
全てのオブジェクトはidとtypeを持つ。
リテラルのオブジェクトはvalueを持つ。
関数コールのオブジェクト(ブロック)は配列argsとvalueを持ち、valueは常にnull(?)
ルート配列直下のオブジェクト(変数)は追加でnameを持つ。
/* | |
* MIT License | |
* (c) 2019 marihachi. | |
*/ | |
interface Edge { | |
src: number; | |
dest: number; | |
} |
#!/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; |
=========== | |
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 |
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:
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() |
interface PlainText extends String { | |
__plaintext__: never | |
} | |
interface Base64Encoded extends String { | |
__base64Encoded__: never | |
} | |
interface Encrypted extends String { | |
__encrypted__: never | |
} |