Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yuki Matsukura matsubo

🏠
Working from home
View GitHub Profile
View openapi.md

OpenAPI Specification

  • OAS3 (OpenAPI Specification Version 3) で書かれている仕様書とAPIのまとめです。
  • OpenAPIで記述されたAPI仕様書はサンプルはWeb上に公開されているケースが多いですが、実際に運用されているAPIの仕様書が公開されている例が少ないのでこちらでまとめておきます。

郵便番号検索API

@matsubo
matsubo / near_by_stations.html
Last active Jun 7, 2022
最寄りの駅情報をJavascriptで取得するコード
View near_by_stations.html
<div class="form-control w-full max-w-full" data-controller="doc">
<label class="label">
<span class="label-text">経度</span>
</label>
<input type="text" data-doc-target="lon" name="lon" id="lon" placeholder="139.738999" value=""
class="input input-bordered w-full max-w-xs" />
<label class="label">
<span class="label-text">緯度</span>
</label>
View Dockerfile.sample
RUN bin/download-chromedriver.sh && mv chromedriver /usr/local/bin/
View arm.diff
diff --git a/docker-compose.yml b/docker-compose.yml
index 2ebf9f0..8a02a5e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,11 +1,12 @@
version: '3'
services:
db:
- image: mysql:8.0
+ image: mysql/mysql-server:8.0
View Gemfile
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "mechanize", "~> 2.8"
gem "activesupport", "~> 7.0"
@matsubo
matsubo / Gemfile
Last active Jan 12, 2022
Check toones balance and send alert if unsufficient.
View Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
# gem "rails"
gem "mechanize", "~> 2.8"
gem "logger", "~> 1.5"
View 00-installer-config.yaml
network:
version: 2
renderer: networkd
ethernets:
eno1:
addresses: [192.168.1.16/24]
nameservers:
addresses: [192.168.1.1, 8.8.8.8, 8.8.4.4]
optional: true
routes:
View corporation.teraren.com.yml
openapi: 3.0.3
info:
version: 0.0.2
title: 法人番号検索API
description: https://corporation.teraren.com/ にて提供している法人番号検索APIの仕様書
license:
name: This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
contact:
name: Yuki Matsukura
url: https://twitter.com/matsubokkuri
View php-fpm.log
[08-Oct-2021 02:37:19 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-builder.php:475
Stack trace:
#0 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(303): GoogleSitemapGeneratorStandardBuilder->Index(Object(GoogleSitemapGenerator))
#1 /home/matsu/Sites/teraren.com/diary/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#2 /home/matsu/Sites/teraren.com/diary/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-core.php(1623): do_action('sm_build_index', Object(GoogleSitemapGenerator))
#4 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-loader.php(327): GoogleSitemapGenerator->ShowSitemap(Array)
#5 /home/matsu/Sites/teraren.com/diary/wp-content/plugins/google-sitemap-generator/sitemap-l
View mj.html
<!-- wp:heading -->
<h2>概要</h2>
<!-- /wp:heading -->
<!-- wp:image {"id":9874} -->
<figure class="wp-block-image"><img src="https://matsu.teraren.com/blog/wp-content/uploads/2020/01/image-17.png" alt="Jun Murai" class="wp-image-9874"/></figure>
<!-- /wp:image -->
<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>「日本のインターネットの父」と呼ばれる<a href="http://www.asahi.com/topics/word/%E6%85%B6%E5%BF%9C%E5%A4%A7%E5%AD%A6.html">慶応大</a>環境情報学部教授の村井純さん(64)が定年を迎え、16日、最終講義があった。村井さんは「インターネットに国境はない。国や政府が分断したり規制しようとしたりする試みは続くだろうが、若い人たちで守ってほしい」と呼びかけた。</p><cite><a href="https://www.asahi.com/articles/ASN1J6FPYN1JULBJ00N.html">https://www.asahi.com/</a></cite></blockquote>