I hereby claim:
- I am xreiju on github.
- I am reiju (https://keybase.io/reiju) on keybase.
- I have a public key ASDTCwMgBGOHAkIUqZ1HME9SYToi1VZHGVWONc25g21n0Qo
To claim this, I am signing this object:
const iTunes = Application('iTunes') | |
const app = Application.currentApplication() | |
app.includeStandardAdditions = true | |
const hookURL = 'https://misskey-hook.firebaseapp.comで取得して' | |
function getTrack(iTunes) { | |
return iTunes.currentTrack() | |
} | |
function getTrackData(iTunes) { |
// Requirement: node-fetch | |
// How it works: | |
// $ node misskey_reaction.js xxxxxxxxxxxxxxxxx(noteId) | |
// $ node misskey_reaction.js https://${host}/notes/xxxxxxxxxxxx(noteId) | |
// You need to put your token here to get it working. | |
const i = '!YOUPUTYOURTOKENHERETOGETTHISPROGRAMTOWORK' | |
// | |
const fetch = require('node-fetch') |
I hereby claim:
To claim this, I am signing this object:
Because you came to this kind of service, I won't explain about some easy things. You must've known how things work.
Basically, the explanations are based on PC version. You can also change those settings in Smartphone version.
You can disable this at Settings -> Web -> Use circle icons.
# requirements: request, spotipy(needs MANUAL installation) | |
# $ python3 misskey_spotify_nowplaying.py <spotify ID> (silent) | |
# silentが指定されている場合、Misskeyにpostされずに投稿内容のプレビューのみを実行します。 | |
# 2018/08/20: tokenではなくmisskey-hookを使うように変更しました。以前は"i"を使っていました。履歴参照。 | |
import json, sys, urllib.request | |
import spotipy | |
import spotipy.util as util |
import vibe.http.websockets; | |
import vibe.core.log; | |
import vibe.core.core; | |
import vibe.inet.url; | |
import std.json; | |
import std.net.curl; | |
import std.parallelism; | |
import std.random; | |
import std.concurrency; | |
import std.stdio; |
I hereby claim:
To claim this, I am signing this object:
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
int main() { | |
SDL_Init(SDL_INIT_VIDEO); | |
SDL_Window* window; | |
SDL_Renderer* renderer; | |
SDL_CreateWindowAndRenderer(300, 300, SDL_RENDERER_PRESENTVSYNC, &window, &renderer); | |
int running = 1; |
import std.stdio; | |
import derelict.sdl2.sdl; | |
void main() | |
{ | |
DerelictSDL2.load(); | |
SDL_Init(SDL_INIT_VIDEO); | |
scope(exit) SDL_Quit(); | |
SDL_Window* window; |