Skip to content

Instantly share code, notes, and snippets.

View toshipon's full-sized avatar
🏠
Working from home

toshipon toshipon

🏠
Working from home
View GitHub Profile
@toshipon
toshipon / Hoge.yaml
Created March 8, 2021 21:05
schema yaml sample
type: object
description: "Hoge"
properties:
code:
type: string
example: "102-0073"
address:
type: string
example: "東京都千代田区九段北"
@toshipon
toshipon / index.yaml
Last active March 8, 2021 21:01
example swagger index
openapi: "3.0.0"
info:
version: "0.0.1"
title: "Example API"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
servers:
- url: https://api.example.net/
- url: http://localhost:8080/
@toshipon
toshipon / docker-compose.yaml
Last active March 8, 2021 21:16
docker-compose for swagger-merger
version: "3.3"
services:
swagger-ui:
image: swaggerapi/swagger-ui
container_name: "swagger-ui"
ports:
- "8082:8080"
volumes:
- ./:/swagger
@toshipon
toshipon / Dockerfile
Created March 8, 2021 20:40
swagger-merger Dockerfile
FROM node:alpine
RUN npm install -g swagger-merger watch
CMD ["swagger-merger"]
#!/usr/bin/php
<?php
# Git Prepare Commit Message Hook Script
#
# Location: <repository>/.git/hooks/prepare-commit-msg
#
# This script will automatically add the correct
# Pivotal Ticket ID to the beginning of each commit message
# When the branch ID is starts with the Pivotal Message ID.
# It can be overridden if specified in the message.
@toshipon
toshipon / .zshrc
Created March 20, 2012 13:45
.zshrc
# Titanium builder
alias ti='/Users/XXXXXX/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.2/android/builder.py'
@toshipon
toshipon / .vimrc
Created March 20, 2012 13:19
.vimrc_20120320
" Common -------------------------------
set nocompatible " vim
colorscheme Metroid " カラースキーマの設定
set background=light " 背景色の傾向(カラースキーマがそれに併せて色の明暗を変えてくれる)
" File ---------------------------------
set autoread " 更新時自動再読込み
set hidden " 編集中でも他のファイルを開けるようにする
set noswapfile " スワップファイルを作らない
set nobackup " バックアップを取らない
@toshipon
toshipon / gist:1858482
Created February 18, 2012 09:38
resize event
// リサイズ処理
$(window).resize((function(){
var w = document.body.clientWidth;
var h = document.body.clientHeight;
return function(e){
var currentW = document.body.clientWidth;
var currentH = document.body.clientHeight;
if (w === currentW && h === currentH) {
return;
@toshipon
toshipon / hotel_controller.rb
Created January 30, 2012 16:45
hotel_controller.rb
# /hotels
# /hotels.json
def show
options = {
:apikey => EAN3_CONFIG["apikey"],
:secret => EAN3_CONFIG["secret"],
:cid => EAN3_CONFIG["cid"],
:minorRev => 12,
:locale => "ja_JP",
:currencyCode => "JPY",
@toshipon
toshipon / .gvimrc
Created January 29, 2012 09:58
.gvimrc
colorscheme darkblue