Skip to content

Instantly share code, notes, and snippets.

■RestTemplateの使い方関連
【Spring Boot】RestTemplateによるAPI呼び出し
https://b1san-blog.com/post/spring/spring-rest-template/
SpringBootで「application/x-www-form-urlencoded」形式のリクエストを送る&受け取る
https://hirabay.net/?p=99
■サンプル用プロジェクトの作成のため参考にした
IntelliJでSpringFramework(MVC)のmavenプロジェクトHelloWorld(2020/3)
https://qiita.com/kasa_le/items/6aaf17823db67c951fb0
2.3. はじめてのSpring MVCアプリケーション (TERASOLUNA)
7.5
8.5
6.0
7.5
7.5
8.0
@ossan-pg
ossan-pg / .vimrc
Last active June 10, 2019 16:13
.vimrc と CocConfig
set vb t_vb=
set number
set nobackup
set noundofile
set tabstop=4
set expandtab
set autoindent
set smarttab
set shiftwidth=4
@ossan-pg
ossan-pg / invalid_package_dependencies.txt
Last active May 9, 2019 05:44
elm/http をインストール後に elm-test を実行するとパッケージの依存でエラーになる
$ mkdir elm-hoge-test
$ cd elm-hoge-test
$ elm init
Hello! Elm projects always start with an elm.json file. I can create them!
Now you may be wondering, what will be in this file? How do I add Elm files to
my project? How do I see it in the browser? How will my code grow? Do I need
more directories? What about tests? Etc.
Check out <https://elm-lang.org/0.19.0/init> for all the answers!
@ossan-pg
ossan-pg / MyList.elm
Last active May 5, 2019 04:17
Elm の List モジュールの関数を自作する
module MyList exposing (..)
-- original: List.repeat
repeat : Int -> a -> List a
repeat idx value =
if idx <= 0 then
[]
else
value :: (repeat (idx - 1) value)
@ossan-pg
ossan-pg / footnotes.md
Last active January 5, 2019 12:39
GitHub の Markdown って注釈(footnote)サポートしてるんだっけ?

GFM の仕様見てもなさそうだった。

でもまぁ試してみたい。1

GFM の仕様見てもなさそうだった。

でもまぁ試してみたい。[^1]

Footnotes

  1. どや?

@ossan-pg
ossan-pg / conf.template
Created November 16, 2018 01:45
Docker Compose サンプル
# Nginx 設定ファイルテンプレート
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/host.access.log main;
error_log /var/log/nginx/host.error.log warn;
#error_page 404 /404.html;
@ossan-pg
ossan-pg / config.groovy
Created June 28, 2018 05:53
DBのテーブルから定期的にレコードを取得してコンソール出力する
url = 'jdbc:postgresql://localhost:5432/my_db'
user = 'username'
pass = 'password'
driver = 'org.postgresql.Driver'
@ossan-pg
ossan-pg / SqlUtil.groovy
Last active May 23, 2018 06:31
Spring プロジェクトのテスト時に手軽に SQL を実行したかったがうまくいかなかったのでユーティリティークラスを自前で用意した。
package com.github.ossan_pg
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.core.env.Environment
import org.springframework.core.io.ResourceLoader
import org.springframework.stereotype.Component
import groovy.sql.Sql
import groovy.transform.TupleConstructor
@ossan-pg
ossan-pg / task.md
Created February 15, 2018 13:50
サービス作成のお題

お題

プログラミングの練習によさそうな課題だったのでメモ。

https://twitter.com/yonemura2006/status/964051267130568704

いつもためになるお話をありがとうございます。

私は独学でプログラムをやっているのですが、職業PGとして雇ってもらうための基準が不明確で困っております。 会社によって基準は違うとは思いますので大変アバウトな質問で恐縮ですが、米村さんの会社でしたら、 例えばJavaとPHPを使ってこの程度の製品・サービスくらいは作れて当然だよねというラインはありますでしょうか?