This file contains hidden or 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
| application: backlogbot | |
| version: 1 | |
| runtime: go | |
| api_version: go1 | |
| handlers: | |
| - url: /.* | |
| script: _go_app |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "io" | |
| "os" | |
| "strconv" | |
| "strings" |
This file contains hidden or 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
| -- のんびり問題 | |
| -- http://nabetani.sakura.ne.jp/hena/ord7selectchair/ | |
| import Data.List | |
| import Data.List.Split | |
| import Data.Char | |
| data Chair = Chair{number :: Int, shittingMan :: Char} | |
| | Empty {number :: Int} | |
| | NoChair deriving(Show,Eq) |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require 'fileutils' | |
| class CopingFilePath | |
| attr_reader :root, :file_path | |
| def initialize(root, file_path) | |
| @root = root | |
| @file_path = file_path | |
| end |
This file contains hidden or 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
| #!/user/bin/bash | |
| ################################# | |
| # svnで管理しているmavenディレクトリ下の修正ソースファイルを抽出するスクリプト | |
| # | |
| # svn のstatusからadd,modified,deleteされたファイルを見つけて | |
| # 抽出します。(delete分はファイル名をlogに吐くだけ) | |
| # $dist に設定されたディレクトリの直下srcディレクトリにファイルが抽出され、 | |
| # file_listファイルにファイルの一覧が出力されます。 | |
| # 要 svnのコマンドラインツール | |
| # |
This file contains hidden or 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
| // 0 -> A, 25 ->Z ,26 -> AA ,27 -> AB | |
| def toExcelColDesc(n : Int) = toAlphabet(convTo26Number(n)) | |
| def oneToA(i:Int) = if (i < 1) "" else (('A' - 1) + i).toChar | |
| def zeroToA(i:Int) = ('A'+ i ).toChar | |
| val digit = ('Z' - 'A') + 1 | |
| def convTo26Number(n :Int ,figs :List[Int] = Nil) : List[Int] = | |
| if (n < digit) n :: figs | |
| else convTo26Number((n / digit) , (n % digit) :: figs ) |