- あるリポジトリのあるプルリクエストがmasterブランチにマージされたら飛んでくるwebhookを受け取る
- そのリポジトリをcloneし、イメージのバージョンが書かれているファイルを探す
- 見つかったファイルのイメージのバージョンを上げる
- 変更をmasterブランチにpushする
- GitHubにDeploymentを発行する
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
ductはClojureでWebアプリケーションを開発するためのテンプレートであり、小さなライブラリです。 | |
* [Getting Started](./getting-started.md) | |
* [設定](./configuration.md) | |
* [サービス境界(boundaries)](./boundaries.md) | |
* [互換性のあるライブラリ](./compatible-libraries.md) |
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
(ns main | |
(:require [clojure.java.io :as io]) | |
(:import [org.apache.pdfbox.pdmodel PDDocument] | |
[org.apache.pdfbox.text PDFTextStripper])) | |
(defn extract-string [src] | |
(with-open [doc (->> src PDDocument/load)] | |
(->> doc (.getText (PDFTextStripper.))))) |
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
WITH | |
sessions AS ( | |
SELECT | |
*, | |
ROW_NUMBER() OVER (PARTITION BY anonymous_id ORDER BY sent_at ASC) AS rn | |
FROM | |
`your-project.your_dataset.pages` ), | |
first_page AS ( | |
SELECT | |
* |
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
(defn- 西暦->和暦 [西暦] | |
(let [year (read-string 西暦)] | |
(cond | |
;; 平成 | |
(<= 0 (- year 1988)) | |
{:和暦 "平成" | |
:年 (- year 1988)} | |
;; 昭和 | |
(<= 0 (- year 1925)) | |
{:和暦 "昭和" |
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
module Hoge | |
def self.included(klass) | |
klass.extend ClassMethods | |
end | |
module ClassMethods | |
def foo | |
p 'foo' | |
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
(try (/ 1 0) | |
(catch Exception e | |
(println (clojure.string/join "\n " (cons (str e(.getMessage e)) (map str (.getStackTrace e))))))) |
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
-- Thanks https://community.oracle.com/thread/630462?start=0&tstart=0 | |
select 'Create Sequence '||sequence_name|| | |
' increment by '||increment_by|| | |
' start with '||last_number|| | |
' maxvalue '||max_value|| | |
decode(cycle_flag,'N',' NOCYCLE ',' CYCLE ')|| | |
decode(cache_size,0,'NOCACHE ','CACHE '||cache_size) | |
from user_sequences; | |