分散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; |
分散SNS Advent Calendar 2018 Fediverseとその他の分散サービスの歴史とプロジェクトを適当に書いておくだけの記事
ジャンル | マイクロブログ |
---|---|
読み | ラコニカ(?) |
開発者 | Evan Prodromou(Control Yourself社) |
言語 | PHP |
One of the key parts of the save/load process in Factorio is that it must be deterministic. This means that for a given save file (when no external factors change) saving, exiting, and loading the save shouldn't change any observable behavior.
There are a few reasons and benefits for this strict requirement:
Copyright 2018 YuzuRyo61 | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER D |
// Requirement: node-fetch | |
// How it works: | |
// $ node misskey_reaction.js xxxxxxxxxxxxxxxxx(noteId) | |
// $ node misskey_reaction.js https://${host}/notes/xxxxxxxxxxxx(noteId) | |
// You need to put your token here to get it working. | |
const i = '!YOUPUTYOURTOKENHERETOGETTHISPROGRAMTOWORK' | |
// | |
const fetch = require('node-fetch') |
const Xev = require('xev').default; | |
const { EventEmitter } = require('events'); | |
class XevPubSub extends EventEmitter { | |
constructor(namespace) { | |
super(); | |
this.parentEmitter = new Xev(namespace); | |
this.list = {}; | |
this.handler = (channel) => (message) => this.emit('message', channel, message); | |
} |
title |
---|
Misskey タイムライン機能比較 |
ホーム | ローカル | ハイブリッド | グローバル | ||
---|---|---|---|---|---|
ユーザー | フォロー | ✔ | ✔ | ✔ | |
ローカル | ✔ | ✔ | ✔ | ||
リモート | ✔ | ||||
公開範囲 | 公開 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>麻雀</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
transform-style: preserve-3d } |
// ==UserScript== | |
// @name DisableCat | |
// @namespace https://rinsuki.net | |
// @version 0.1 | |
// @description 設定→Web→詳細設定→ストリームを経由したAPIリクエストをOFFにしたあとリロード | |
// @author rinsuki | |
// @match https://misskey.xyz/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |