View indigo-instance-report.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch' | |
/** | |
* @param {NapkinRequest} req | |
* @param {NapkinResponse} res | |
*/ | |
// Fork this function to input your own slack webhook url | |
const url = process.env.SLACK_WEBHOOK_URL | |
const INDIGO_CLIENT_ID = process.env.INDIGO_CLIENT_ID | |
const INDIGO_CLIENT_SECRET = process.env.INDIGO_CLIENT_SECRET |
View devicecode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DeviceCodeResult = { | |
device_code: string | |
user_code: string | |
verification_url: string | |
expires_in: number | |
interval: number | |
} |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
const promises_1 = require("timers/promises"); | |
const electron_1 = require("electron"); | |
electron_1.app.on("ready", async () => { | |
const browser = new electron_1.BrowserWindow({ | |
titleBarStyle: "hiddenInset", | |
titleBarOverlay: true, | |
}); | |
await (0, promises_1.setTimeout)(1000); |
View annict-mal.md
no related
View activities-from-user.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
user(username: "kokoro") { | |
activities(first: 10) { | |
edges { | |
annictId, | |
action, | |
node { | |
__typename | |
... on Status { | |
work { |
View skip-arch.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile.am b/Makefile.am | |
index dd282b23cc..dc353dddbd 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -169,10 +169,7 @@ if BUILD_VLC | |
############################################################################### | |
install-exec-hook: | |
if test "$(build)" = "$(host)"; then \ | |
- PATH="$(DESTDIR)$(bindir):$$PATH" \ | |
- LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \ |
View poly1305.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable prefer-const */ | |
/* | |
* Port of Andrew Moon's Poly1305-donna-16. Public domain. | |
* https://github.com/floodyberry/poly1305-donna | |
* https://github.dev/sodium-friends/sodium-javascript | |
*/ | |
import Chacha20 from "chacha20-universal" | |
export const generateMac = ( | |
key: Uint8Array, |
View sodium-javascript.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "sodium-javascript" { | |
export function crypto_aead_chacha20poly1305_ietf_encrypt( | |
ciphertext: Uint8Array, | |
message: Uint8Array, | |
ad: Uint8Array | null, | |
nsec: unknown | null, | |
npub_nonce: Uint8Array, | |
key: Uint8Array | |
): number | |
export function crypto_aead_chacha20poly1305_ietf_encrypt_detached( |
View chain.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { chain } from "stream-chain" | |
import { parser } from "stream-json" | |
import { streamArray } from "stream-json/streamers/StreamArray" | |
import { MirakurunAPI } from "../infra/mirakurun" | |
const main = async () => { | |
const client = new MirakurunAPI({ | |
baseUrl: "http://192.168.0.10:40772/api", | |
}) | |
const claimStream = await client.events.getEventsStream( |
NewerOlder