Skip to content

Instantly share code, notes, and snippets.

View Anderson-Juhasc's full-sized avatar
:octocat:
Looking for work

Anderson Juhasc Anderson-Juhasc

:octocat:
Looking for work
View GitHub Profile
@Memory-of-Snow
Memory-of-Snow / 2_3_alt.js
Last active September 5, 2024 14:53
演習コードの改造案
/**
* テキスト投稿イベント(リプライ)を組み立てる
* @param {string} content 投稿内容
* @param {import("nostr-tools").Event} targetEvent リプライ対象のイベント
*/
const composeReplyPost = (content, targetEvent) => {
/* Q-1: これまで学んだことを思い出しながら、
リプライを表現するイベントを組み立てよう */
@bumi
bumi / nwc-openai.mjs
Created July 14, 2023 12:55
NWC, L402, OpenAI example
import { fetchWithL402 } from "alby-tools";
import { webln } from "alby-js-sdk";
import 'websocket-polyfill';
import * as crypto from 'crypto'; // or 'node:crypto'
globalThis.crypto = crypto;
const nwcURL = process.env.NWC_URL;
async function main() {
const nwc = new webln.NWC({ nostrWalletConnectUrl: nwcURL });
@ryogrid
ryogrid / config.js
Last active September 5, 2024 13:56
current bostr config
// Bostr config
module.exports = {
// Server listener [Required]
address: "127.0.0.1",
port: "8080",
// Clusters.
// 0 will make bostr run clusters with available parallelism / CPU cores.
clusters: 1,
@felipeadeildo
felipeadeildo / rocketseat_downloader.py
Last active November 20, 2025 03:06
Rocketseat Downloader
import json
import os
import pickle
import queue
import random
import re
import threading
from pathlib import Path
from typing import Optional
from urllib.parse import parse_qs