Skip to content

Instantly share code, notes, and snippets.

View shiroemons's full-sized avatar

Satoshi Morita shiroemons

  • Fukuoka, Japan
  • 15:51 (UTC +09:00)
View GitHub Profile
# 全俳句データベース
# https://horicun.moo.jp/contents/haiku/index.html
# の機能をPythonで実装されたもの
# https://gist.github.com/recuraki/7e5cde9eb3b5a3c2c2895a0a3e77c5db
# をRubyに移植しました。
# haiku.nth_haiku(n): n番目の俳句を表示します。n <= 85 ** (5+7+5)である必要があります。
# haiku.haiku_to_nth(s): 与えられた5 7 5の俳句sが何番目の俳句かを検索します。
class Haiku
attr_accessor :chars, :chars_rev, :charmax, :debug
@shiroemons
shiroemons / main.go
Last active August 15, 2023 10:47
曲目ファイル作成支援ツール
//
// GOOS=windows GOARCH=amd64 go build -o titles_th.exe main.go
//
package main
import (
"bufio"
"bytes"
"encoding/binary"
@shiroemons
shiroemons / docker-compose.yml
Created March 5, 2022 15:55
vitess docker-compose
version: "3.8"
services:
db:
image: vitess/vttestserver:mysql80
ports:
- "33577:33577"
environment:
KEYSPACES: "test,unsharded"
NUM_SHARDS: "2,1"
MYSQL_MAX_CONNECTIONS: "70000"
# frozen_string_literal: true
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'benchmark_driver'
end
# frozen_string_literal: true
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem 'benchmark'
# refs: https://github.com/iyshannon/cuid/blob/master/lib/cuid.rb
require 'socket'
require 'securerandom'
##
# Cuid is a library for generating unique collision-resistant IDs optimized for horizontal scaling and performance
#
# @example Generate a hash
# hash = Cuid::generate #=> "ch8qypsnz0000a4welw8anyr"
delivery_deadline title artist url
2020-05-28 無限旋律のアリア 天秤亭 / 朱南レイ https://musicpost.joysound.com/music/musicId:87318
2020-05-28 ひっくり返して世界 天秤亭 / 冬乃桜 https://musicpost.joysound.com/music/musicId:87321
2020-06-04 六道オルタ モジャン棒 https://musicpost.joysound.com/music/musicId:64066
2020-06-06 U.N.オーエンは彼女なのか?-HAL RMX- はるちん https://musicpost.joysound.com/music/musicId:29301
2020-06-07 ミクロコスモス GET IN THE RING https://musicpost.joysound.com/music/musicId:27943
2020-06-07 Lie to me ~君に重ねる嘘幾つ~ GET IN THE RING https://musicpost.joysound.com/music/musicId:27940
2020-06-13 天球上のプロムナード(Red Forest covered.) RED FOREST METAL ORCHESTRA feat. 少女理論観測所 / うきね https://musicpost.joysound.com/music/musicId:65136
2020-06-15 千ノ縁 Yonder Voice https://musicpost.joysound.com/music/musicId:90882
2020-06-20 童遊 凋叶棕 feat.めらみぽっぷ https://musicpost.joysound.com/music/musicId:49634
document.body.style = "transform: rotateY(180deg);"
tap "github/gh"
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
brew "colordiff"
brew "fish"
brew "fzf"