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 / hosts.md
Last active October 13, 2018 16:15
ホスト一覧

kb10uy ホスト一覧

yoshinon

  • 通称: 新鯖
  • 運用開始: 2017/09
  • 構成
    • DeskMini 110
    • Intel Pentium G4560 (2C4T)
    • 8GB DDR4 RAM
  • 250GB SSD
@kb10uy
kb10uy / DateTimePicker.vue
Last active March 30, 2018 09:43
Needs ts-loader and sass-loader.
<template>
<div class="datetimepicker">
<div class="view">
<input type="text" class="preview" :value="previewText" readonly>
<button class="change-button" @click="openPicker">⏰</button>
</div>
<transition name="fade">
<div class="picker" v-if="shown">
<div class="date">
<div class="month-selector">
@kb10uy
kb10uy / 性癖.txt
Created February 27, 2018 16:59
2月終了時点の性癖です
https://twitter.com/-/status/481466101679677440
https://twitter.com/-/status/494200040957960192
https://twitter.com/-/status/552136787649253376
https://twitter.com/-/status/554819198925279233
https://twitter.com/-/status/621680344794705920
https://twitter.com/-/status/627788631634132992
https://twitter.com/-/status/627855701310750720
https://twitter.com/-/status/628111926829039616
https://twitter.com/-/status/629190004514787328
https://twitter.com/-/status/631347069253365761
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CoreTweet;
using System.Net;
using System.IO;
using System.Threading;
using CoreTweet.Core;
@kb10uy
kb10uy / th123_th155.tex
Last active January 13, 2018 05:21
なんか作っちゃったし置いとく
%憑依華の回転に必要
\usepackage{graphicx}
\newcommand{\東方非想天則}{
\makebox[5em]{
\raise0ex\hbox to 0.8em{\large 東}
\raise0.8ex\hbox to 0.5em{方}
\lower1.2ex\hbox to 1em{\Large 非}
\raise0.3ex\hbox to 0.6em{\small 想}
\raise0.7ex\hbox to 0.8em{\large 天}
@kb10uy
kb10uy / KaTeXAutoRender.ts
Created December 10, 2017 10:01
KaTeX auto render module (TypeScript)
import katex = require('katex');
// this is similar to delimiter object in auto-render.js
interface IKaTeXAutoRenderSurround {
display: boolean;
test: RegExp;
}
// options to be given to renderMathInElement
interface IKaTeXAutoRenderOption {
@kb10uy
kb10uy / LittleRiddle.sus
Created December 2, 2017 14:18
オドリドリ
#SONGID "LittleRiddle"
#TITLE "リトルリドル"
#ARTIST "LittlePOPS"
#DIFFICULTY 3
#PLAYLEVEL 12
#DESIGNER "kb10uy"
#WAVE "リトルリドル.ogg"
#WAVEOFFSET 1.808
#JACKET "jacket.jpg"
@kb10uy
kb10uy / homo.css
Created October 28, 2017 07:13
高森藍子さんに会いたかった
body {
animation: rainbow 2s linear 0s infinite normal;
}
@keyframes rainbow {
0% {
background-color: hsl(0, 100%, 50%);
}
25% {
background-color: hsl(90, 100%, 50%);
}
@kb10uy
kb10uy / epollclient.cpp
Created September 23, 2017 11:59
epollとUNIX Domain Socketのテスト
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <memory.h>
#include <signal.h>
#include <sys/un.h>
#include <sys/epoll.h>
#include <sys/socket.h>
@kb10uy
kb10uy / databaseerrord.c
Last active September 19, 2017 11:44
databaseerrord - データベース確立エラー for FastCGI
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcgi_config.h>
#include <fcgi_stdio.h>
void run(void);
int main(void) {
while (FCGI_Accept() >= 0) {