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
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
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/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" | |
"os" | |
) | |
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
<style> | |
.full button span { | |
background-color: limegreen; | |
border-radius: 32px; | |
color: black; | |
} | |
.partially button span { | |
background-color: orange; | |
border-radius: 32px; | |
color: black; |
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
import {Component} from 'angular2/core'; | |
import {CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/common'; | |
import {DATEPICKER_DIRECTIVES} from 'ng2-bootstrap'; | |
import * as moment from 'moment'; | |
@Component({ | |
selector: 'calendar-demo', | |
templateUrl: 'components/calendar/calendar.html', | |
directives: [DATEPICKER_DIRECTIVES, CORE_DIRECTIVES, FORM_DIRECTIVES] | |
}) |
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
import {Component} from 'angular2/core'; | |
import {CORE_DIRECTIVES} from 'angular2/common'; | |
import {bootstrap} from 'angular2/platform/browser'; | |
import {CalendarComponent} from '../components/calendar/calendar'; | |
bootstrap(CalendarComponent) |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Documnet</title> | |
<base href=""> | |
</head> | |
<body> | |
<!--1.Display the application --> | |
<calendar-demo>Loading...</calendar-demo> |
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
///6.0.2を使用して動作確認済み | |
///https://github.com/malcommac/SwiftDate/releases/tag/6.0.2 | |
import SwiftDate | |
let dateTruncated = Date().dateTruncated([.second]) |