Skip to content

Instantly share code, notes, and snippets.

View yoshixmk's full-sized avatar

Yoshihiro Ueki yoshixmk

View GitHub Profile
@tanan
tanan / envoy.yaml
Created September 27, 2020 05:11
envoy proxy for frontend
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
static_resources:
listeners:
- name: listener_http
address:
socket_address: { address: 0.0.0.0, port_value: 80 }
@ak1t0
ak1t0 / es-jp-ngram-kuromoji-schema.json
Last active June 17, 2020 03:18
Elasticsearch 日本語検索用スキーマ n-gram 形態素解析
{
"settings": {
"analysis": {
"analyzer": {
"ja_ngram_analyzer": {
"tokenizer": "ja_ngram_tokenizer"
}
},
"tokenizer": {
"ja_ngram_tokenizer": {
@enricofoltran
enricofoltran / main.go
Last active April 6, 2025 09:48
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@gakuzzzz
gakuzzzz / action-function.md
Last active April 6, 2023 01:47
ActionFunction の紹介 - Play framework Advent Calendar 2014 7日目

ActionFunction の紹介

この記事は Play framework Advent Calendar 2014 の7日目です。

昨日は @dorako321 さんの Play framework Advent Calendar 2014 6日目 位置情報を使ってみよう でした。

明日は @nazoking さんの play2.3 の sbt-web を使わず node で代替システムを作るための資料 です。

さて、そんなこんなで公式ドキュメントではまだ語られていない ActionFunction とそのサブトレイトについて紹介したいと思います。 (公式ドキュメントにも記載ありました https://www.playframework.com/documentation/2.3.x/ScalaActionsComposition#Different-request-types )

@kazuhisa
kazuhisa / UFO
Created February 15, 2014 08:11
class Hoge
include Comparable
attr_accessor :age
def initialize(age)
@age = age
end
def <=>(other)
self.age <=> other.age