Skip to content

Instantly share code, notes, and snippets.

View nakkaa's full-sized avatar

なっかあ nakkaa

View GitHub Profile
@nakkaa
nakkaa / channels-media-timeline.ts
Last active August 17, 2023 04:45
Misskey v13.14.2にメディアタイムラインを追加する
import { Injectable } from '@nestjs/common';
import { checkWordMute } from '@/misc/check-word-mute.js';
import { isUserRelated } from '@/misc/is-user-related.js';
import type { Packed } from '@/misc/json-schema.js';
import { MetaService } from '@/core/MetaService.js';
import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import Channel from '../channel.js';
def ex2019a():
n = raw_input().split(" ")
a = int(n[0])
b = int(n[1])
c = int(n[2])
if a == b and b == c:
print "Yes"
else:
print "No"
def ex2019b():
N = int(raw_input())
S = raw_input()
s = list(S)
r = 0
b = 0
for i in range(N):
if s[i] == "R":
@nakkaa
nakkaa / abc081.py
Created December 25, 2018 12:33
AtCoderの練習
def abc081():
s = raw_input()
cnt = 0
if s[0] == '1': cnt += 1
if s[1] == '1': cnt += 1
if s[2] == '1': cnt += 1
print cnt
def main():
abc081()