Все Новый

user:thomas фрагментов создано пользователем

title:mygist фрагментов с указанным заголовком

description:sync gists with given description

filename:myfile.txt фрагменты содержащие файлы с указанным именем

extension:yml фрагменты, содержащие файлы с указанным расширением

language:go фрагменты, содержащие файлы с указанным языком

topic:homelab фрагменты с заданной темой

all:systemctl search all fields

Регистрация

Войти

Все Новый Регистрация Войти

Все фрагменты

Свежие сверху по дате создания
Свежие снизу по дате создания
Свежие сверху по дате обновления
Свежие снизу по дате обновления

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 export async function showActiveCharSwitching(interaction: ButtonInteraction): Promise<void> {
2 const userId = interaction.user.id;
3 const member = interaction.guild!.members.cache.get(userId)
4 ?? await interaction.guild!.members.fetch(userId);
5 const user = await resolveUser(member);
6
7 const impersonating = getImpersonation(userId);
8 const voteId = impersonating ? `impersonated:${impersonating}` : userId;
9 const clicks = clickCounts.get(voteId)!;

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 import {
2 EmbedBuilder,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 TextChannel,
7 GuildMember,
8 } from "discord.js";
9 import { PollState, VoteEntry, Nation, TGSlot } from "@src/types";
10 import { cfg } from "@systems/config";

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 import {
2 ButtonInteraction,
3 StringSelectMenuBuilder,
4 StringSelectMenuOptionBuilder,
5 ActionRowBuilder,
6 TextChannel
7 } from "discord.js";
8 import { cfg } from "@systems/config";
9 import { pollReplyAndDelete } from "../utils";
10 import { resolveUser } from "@systems/users";

nuno / scores.ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 import { TGScore, Nation, ClassKey } from "../types";
2 import { cfg } from "./config";
3 import { upsertScore, todayString } from "./history";
4 import { recordScore } from "./wrank";
5
6 // Normalize a slot string to a 24h integer hour
7 // Accepts: "20", "8", "8pm", "20:00", "midnight", "midday", "noon"
8 export function normalizeSlot(input: string): number | null {
9 const s = input.trim().toLowerCase();
10 if (s === "midnight") return 0;

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 {
2 "2026-W23": {
3 "weekKey": "2026-W23",
4 "entries": {
5 "capella": [
6 {
7 "userKey": "zephyr",
8 "characterName": "XefronYokuda",
9 "class": "FA",
10 "nation": "Capella",

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 {
2 "2026-W23": {
3 "weekKey": "2026-W23",
4 "entries": {
5 "capella": [
6 {
7 "userKey": "zephyr",
8 "characterName": "XefronYokuda",
9 "class": "FA",
10 "nation": "Capella",

nuno / wrank.json before TG

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 {
2 "2026-W23": {
3 "weekKey": "2026-W23",
4 "entries": {
5 "capella": [
6 {
7 "userKey": "zephyr",
8 "characterName": "XefronYokuda",
9 "class": "FA",
10 "nation": "Capella",

nuno / wrank.json before TG (delta changed, score didnt)

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 {
2 "2026-W23": {
3 "weekKey": "2026-W23",
4 "entries": {
5 "capella": [
6 {
7 "userKey": "zephyr",
8 "characterName": "XefronYokuda",
9 "class": "FA",
10 "nation": "Capella",

nuno / wrank.json after TG

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 {
2 "2026-W23": {
3 "weekKey": "2026-W23",
4 "entries": {
5 "capella": [
6 {
7 "userKey": "zephyr",
8 "characterName": "XefronYokuda",
9 "class": "FA",
10 "nation": "Capella",

nuno / wrank,ts

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 import fs from "fs";
2 import path from "path";
3 import { WRankData, WRankWeek, WRankEntry, Nation, ClassKey } from "../types";
4 import { cfg } from "./config";
5
6 const WRANK_PATH = path.join(__dirname, "../../data/wrank.json");
7 let _data: WRankData = {};
8
9 export function loadWRank(): void {
10 try { _data = JSON.parse(fs.readFileSync(WRANK_PATH, "utf8")); }
Новее Позже

Работает на Opengist ⋅ Load: 111ms⋅

Русский
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ KrilHub