Skip to content

Instantly share code, notes, and snippets.

View kb10uy's full-sized avatar
😋
Coding at home

KOBAYASHI Yū kb10uy

😋
Coding at home
View GitHub Profile
@kb10uy
kb10uy / yobikomikun.hsp
Created December 10, 2018 12:07
ゲーミング呼び込み君
font msgothic, 40
repeat
redraw 2
color 40, 40, 40
circle 110, 180, 530, 300
//color 40, 80, 40
hsvcolor cnt \ 192, 255, 60
circle 130, 200, 510, 280
pos 160, 220
@kb10uy
kb10uy / yuyushiki.pl
Created November 4, 2018 06:37
stdin に判定したい文字列を流し込む。その文字列に順不同かつ量一致で「ゆゆ式」が含まれていれば成功
use utf8;
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
<STDIN> =~ /(?{$yu=2;$shiki=1})(ゆ(?{$yu--})|式(?{$shiki--})|.)+/;
if ($yu == 0 && $shiki == 0) {
print "ゆゆ式\n";
}
@kb10uy
kb10uy / SKK-JISYO.ongeki.utf8
Last active April 2, 2019 03:05
オンゲキの楽曲名、キャラクター名、及び声優名を収録 (2019/04/01収録分まで対応)
;;; -*- coding: utf-8 -*-
;; okuri-ari entries.
;; okuri-nasi entries.
ongeki /オンゲキ/
p4g /P!P!P!P!がおー!!;[オンゲキ] 楽曲名/
あいのう /Ai Nov;[オンゲキ] 楽曲名/
あいはらつばき /藍原椿;[オンゲキ] キャラクター名/
あかおひかる /赤尾ひかる/
あさひなまどか /朝日奈丸佳/
あすてりずむ /ASTERISM;[オンゲキ] ユニット名/
@kb10uy
kb10uy / 100q.md
Last active January 16, 2019 12:44
日下夏稀 100の質問

1. 年齢は?

19になったばっかり

2. 性別は?

花も恥らう乙女

3. 血液型は?

B型のRh-

4. 何型っぽいってよく言われる?

@kb10uy
kb10uy / webpack.config.js
Last active September 4, 2018 16:29
2018/09 オレオレウェッパコ
const webpack = require('webpack');
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const WebpackManifestPlugin = require('webpack-manifest-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const AutoPrefixer = require('autoprefixer');
const publicDirectory = path.resolve(__dirname, 'dist/public');
@kb10uy
kb10uy / evaluator.ml
Last active August 17, 2018 16:18
compile: ocamlopt -O2 -o prolog tokenizer.ml parser.ml evaluator.ml frontend.ml
open Parser;;
module Evaluator : sig
exception UnifyError of string;;
val eval : Parser.syntax_tree list -> Parser.syntax_tree -> ((string * Parser.syntax_tree) list -> bool ) -> bool;;
end = struct
module P = Parser;;
exception UnifyError of string;;
let uerror s = raise (UnifyError s);;
FROM debian:stretch
LABEL maintainer="kb10uy"
ENV LANG="ja_JP.UTF-8" \
PATH="/usr/local/pgsql/bin:$PATH" \
PGDATA="/var/lib/postgresql/data" \
PYTHON="/usr/bin/python3"
VOLUME /var/lib/postgresql/data
RUN apt-get update \
cute(uzuki).
cute(miho).
cute(kyoko).
cute(kana).
cute(sachiko).
cute(sae).
cute(noriko).
cute(yuakri).
cute(yuka).
cute(karin).
@kb10uy
kb10uy / MarkdownContent.vue
Created May 15, 2018 13:10
<markdown-content>
<template>
<div class="md-content">
<div class="head">
<slot name="title"></slot>
</div>
<div class="body">
<slot></slot>
</div>
</div>
</template>
@kb10uy
kb10uy / readvoice.c
Created April 17, 2018 12:55
reface DXとLinuxマシンをお持ちの方専用プログラム
/*
* readvoice for reface DX
* 2018/04/17 kb10uy
*
* [How to build]
* gcc -lasound -lm -o readvoice refacedx.c readvoice.c
*
* [How to run]
* 1. Connect your reface DX
* 2. Check rawmidi port name