Skip to content

Instantly share code, notes, and snippets.

Avatar
🥳
ピーヒョロ

ci7lus

🥳
ピーヒョロ
View GitHub Profile
@ci7lus
ci7lus / protobuf-inspector-config-to-proto.py
Last active May 1, 2021
usage: python3 protobuf-inspector-config-to-proto.py protobuf_config.py > proto.proto
View protobuf-inspector-config-to-proto.py
import sys
import importlib.machinery
argv = sys.argv
loader = importlib.machinery.SourceFileLoader("types", argv[1])
loaded = loader.load_module()
print("""syntax = "proto3";
@ci7lus
ci7lus / Controller.tsx
Created Apr 23, 2021
なかなかいい感じに動いた風だったんだけどキャンセルできなくなることがあるな 供養
View Controller.tsx
import React, { useEffect, useRef, useState } from "react"
import { remote } from "electron"
import { CommentOpacitySlider } from "./controllers/CommentOpacitySlider"
import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil"
import { mirakurunPrograms, mirakurunServices } from "../../atoms/mirakurun"
import {
mainPlayerAudioChannel,
mainPlayerAudioTrack,
mainPlayerAudioTracks,
mainPlayerCommentOpacity,
View webgl-video-renderer.ts
/**
* https://github.com/RSATom/webgl-video-renderer
* The MIT License (MIT)
Copyright (c) 2015 Sergey Radionov
Copyright (c) 2015 Ivo Georgiev
Copyright (c) 2015 Alexandru Branza
Copyright (c) 2021 ci7lus
Permission is hereby granted, free of charge, to any person obtaining a copy
@ci7lus
ci7lus / pdc-booth-search.ts
Created Aug 13, 2020
https://booth.pm の検索結果における新規商品を取得
View pdc-booth-search.ts
import { defineComponent } from "ironpipe"
import axios from "axios"
import domino from "domino"
/**
* booth-search.ts
* MIT License (c) 2020 ci7lus
*/
module.exports = defineComponent({
@ci7lus
ci7lus / pdc-nicomanga.ts
Last active Sep 13, 2020
https://seiga.nicovideo.jp/manga/ の新規公式連載情報を取得
View pdc-nicomanga.ts
import { defineComponent } from "ironpipe"
import axios from "axios"
/**
* nicomanga.ts
* MIT License (c) 2020 ci7lus
*/
module.exports = defineComponent({
name: "nicomanga",
View pdc-mangacross.ts
import { defineComponent } from "ironpipe"
import axios from "axios"
/**
* mangacross.ts
* MIT License (c) 2020 ci7lus
*/
module.exports = defineComponent({
name: "mangacross",
View pdc-comic-meteor.ts
import { defineComponent } from "ironpipe"
import axios from "axios"
import moment from "moment"
/**
* comic-meteor.ts
* MIT License (c) 2020 ci7lus
*/
module.exports = defineComponent({
View !comic-meteor-feed.ts
import { defineComponent } from "ironpipe"
import { ArgEventHttp } from "ironpipe/lib/component/pipedream"
import axios from "axios"
import domino from "domino"
import { Feed } from "feed"
import moment from "moment"
import "moment-timezone"
import { renderToStaticMarkup } from "react-dom/server"
import { ComicMeteorFeedIndex } from "./comic-meteor-feed-index"
View nicovideo.jp.css
.RightSideAdContainer {
display: none;
}
.UserPage-main {
width: max-content;
padding: unset;
}
.UserDetailsHeader {
@ci7lus
ci7lus / devops-emoji.js
Last active Jan 4, 2020
Azure DevOps Commit Log Emoji Replacer
View devops-emoji.js
// ==UserScript==
// @name Azure DevOps Commit Log Emoji Replacer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Azure DevOps コミットログ絵文字置換スクリプト
// @author kokoro
// @match https://dev.azure.com/*/_git/*/commits
// @grant none
// @require https://cdn.jsdelivr.net/npm/emoji-js@3.4.1/lib/emoji.min.js
// ==/UserScript==