Skip to content

Instantly share code, notes, and snippets.

@tomo0611
tomo0611 / main.py
Created December 16, 2020 16:37
NikoNiko Comment SDK
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# RealTime NikoNiko Comment SDK
# *
# * Author:
# * Tomochan <[email protected]>
#
@tor4kichi
tor4kichi / 2020-06-07.md
Last active March 13, 2023 09:53
ニコ生 配信情報WebSocketの雑なまとめ

配信の基本情報の取得

送信: {"type":"startWatching","data":{"stream":{"quality":"high","protocol":"hls","latency":"low","chasePlay":false},"room":{"protocol":"webSocket","commentable":true},"reconnect":false}}

受信: {"type":"statistics","data":{"viewers":4,"comments":0,"adPoints":0,"giftPoints":0}}

受信:

#!/usr/bin/perl
# ニコニコ生放送 タイムシフト予約スクリプト
use 5.14.2;
use warnings;
use utf8;
use Encode;
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request::Common;
use Getopt::Std;
@falms
falms / sync.py
Created December 17, 2016 15:38
Sync Chinachu to nasne
import requests
import json
import re
import base64
def base36encode(number):
alphabet, base36 = ['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '']
while number:
number, i = divmod(number, 36)
base36 = alphabet[i] + base36
@bishboria
bishboria / springer-free-maths-books.md
Last active December 14, 2025 11:48
Springer made a bunch of books available for free, these were the direct links