This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 全俳句データベース | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GOOS=windows GOARCH=amd64 go build -o titles_th.exe main.go | |
// | |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
db: | |
image: vitess/vttestserver:mysql80 | |
ports: | |
- "33577:33577" | |
environment: | |
KEYSPACES: "test,unsharded" | |
NUM_SHARDS: "2,1" | |
MYSQL_MAX_CONNECTIONS: "70000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'benchmark_driver' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.style = "transform: rotateY(180deg);" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
NewerOlder