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
<section class="block-A"> | |
<div class="block-B"> | |
<div class="block-B__element-B1 block-B__element-B1--modifier-B1">B1</div> | |
<div class="block-B__element-B2 block-B__element-B2--modifier-B2">B2</div> | |
</div> | |
<div class="block-C"> | |
<div class="block-C__element-C1 block-C__element-C1--modifier-C1">C1</div> | |
<div class="block-C__element-C2 block-C__element-C2--modifier-C2">C2</div> | |
</div> | |
</section> |
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
// observable.subscribeの戻り値として、subscriptionを返却 | |
// observable.subscribeの内部的に、Observerのオブジェクトが生成されていている。 | |
let subscription = observable.subscribe(val => console.log(val)); | |
// 進行中の実行をキャンセル | |
subscription.unsubscribe(); |
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 '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
template: `<p class="today"> | |
本日は、{{today | date}} だ | |
</p> | |
`, | |
styles: [` | |
.today{background-color:yellow} |
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 com.company; | |
import java.io.Serializable; | |
/** | |
* プログラミング言語を表す | |
* Serializableインターフェースを実装する | |
*/ | |
public class Language implements Serializable { |
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 com.company; | |
/** | |
* メイン | |
*/ | |
public class Main { | |
public static void main (String[] args) { | |
System.out.println("===Normal Phone==="); | |
// インスタンス化 | |
Phone normalPhone = new Phone("xxx-xxx-xxx"); |
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 com.company; | |
/** | |
* メイン | |
*/ | |
public class Main { | |
public static void main (String[] args) { | |
System.out.println("===Normal Phone==="); | |
// インスタンス化 | |
Phone normalPhone = new Phone("xxx-xxx-xxx"); |
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
i = 1 | |
while i < 101: | |
if i % 15 == 0: | |
print("Fizz Buzz!") | |
elif i % 3 == 0: | |
print("Fizz!") | |
elif i % 5 == 0: | |
print("Buzz!") | |
else: | |
print(i) |
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
PCollection<Integer> sum = pCollection.apply(Sum.integersGlobally()); |
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
Java,1 | |
Python,5 | |
Go,1 | |
Java,3 | |
Java,2 | |
Go,5 | |
Python,2 | |
Go,2 | |
Go,9 | |
Python,6 |
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
[Output PCollection] = [Input PCollection].apply([Transform]) |