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
package main | |
import ( | |
"github.com/PuerkitoBio/goquery" | |
"fmt" | |
"strings" | |
) | |
type Tournaments struct { | |
Tournament []Tournament |
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
package main | |
import ( | |
"github.com/PuerkitoBio/goquery" | |
"fmt" | |
"io/ioutil" | |
"strings" | |
) | |
type Tournaments struct { |
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
package main | |
import ( | |
"github.com/ugorji/go/codec" | |
"log" | |
"github.com/garyburd/redigo/redis" | |
"os" | |
) | |
type OtherWord struct { |
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
メソッドの抽出 | |
ひとまとめにできるコードの断片がある。 | |
コードの断片をメソッドにして、それに目的を表すような名前をつける。 | |
メソッドのインライン化 | |
メソットの本体が名前をつけて呼ぶまでもなく明らかである。 | |
メソッド本体を呼び出し元にインライン化して、メソッドを除去する。 | |
一時変数のインライン化 | |
簡単な式によって一度だけ代入される一時変数があり、それが他の |
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
Effective Java 全10章 全項目78 | |
4/5 2-4章(3章分) | |
4/12 5-8章(4章分) | |
4/19 10-11章(3章分) | |
4/26 予備週 | |
リファクタリング 1-12章(6章-12章がメイン) | |
5/10 1-6章(6章分) | |
5/17 7-9章(3章分) | |
5/24 10-12章(3章分) |
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
package main | |
import ( | |
"fmt" | |
"text/scanner" | |
"strings" | |
"strconv" | |
) | |
func main() { |
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
package main | |
import ( | |
"fmt" | |
"text/scanner" | |
"strings" | |
"strconv" | |
) | |
func main() { |
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
def calcPalindromicNumber(num) | |
i = num; | |
loop { | |
if i.to_s == i.to_s.reverse && | |
i.to_s(8) == i.to_s(8).reverse && | |
i.to_s(2) == i.to_s(2).reverse | |
return i | |
end | |
i+=1 | |
} |
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
String.prototype.reverse = function () { | |
return this.split("").reverse().join(""); | |
}; | |
function calcPalindromicNumber(num) { | |
for (var i=num;; i++) { | |
if (i % 2 === 0) { | |
continue; | |
} | |
if (i.toString() === i.toString().reverse() && |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println(calcPalindromicNumber(9)) | |
fmt.Println(calcPalindromicNumber(10)) | |
} |