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
class Stack { | |
constructor() { | |
this._array = []; | |
} | |
push(val) { | |
this._array.push(val); | |
} | |
pop() { |
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
@startuml | |
(*) --> "ループ開始(1〜100)" | |
if "i <= 100" as judge then | |
[true] if "i % 3 == 0\n && i % 5 == 0" then | |
-right-> [true] FizzBuzz | |
--> judge | |
else | |
[false] if "i % 3 == 0" then | |
-right-> [true] Fizz |
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
@startuml | |
title Fizz Buzz Activity Diaglam | |
start | |
:ループ開始(1〜100); | |
repeat | |
if (i % 3 == 0 && i % 5 ==0) then (true) | |
:Fizz Buzz; |
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
Integer[] array = {1, 2, 3}; | |
Observable.just("Just created Observable").subscribe(str -> { | |
Log.d("AAA", str); | |
}); | |
// → Just created Observable | |
Observable.just(1, 2, 3).subscribe(i -> { | |
Log.d("AAA", "just : " + String.valueOf(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
package com.callittips.snishimura.rxandroidsample; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.Button; | |
import android.widget.TextView; | |
import com.jakewharton.rxbinding.view.RxView; | |
import com.jakewharton.rxbinding.widget.RxCompoundButton; |
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.callittips.snishimura.rxandroidsample; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.Button; | |
import android.widget.TextView; | |
import com.jakewharton.rxbinding.view.RxView; | |
import com.jakewharton.rxbinding.widget.RxCompoundButton; |
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
@Root(strict = false) | |
public class Channel { | |
private static final String TAG = Channel.class.getSimpleName(); | |
@Attribute(name = "about", required = false) | |
@Namespace(reference = "http://www.w3.org/1999/02/22-rdf-syntax-ns#") | |
private String mAbout; | |
@Element(name = "title") | |
private String mTitle; |
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
public class MainActivity extends AppCompatActivity { | |
private final static String TAG = MainActivity.class.getSimpleName(); | |
@InjectView(R.id.button_touch) | |
Button mTouchButton; | |
@InjectView(R.id.button_reset) | |
Button mResetButton; | |
@InjectView(R.id.tv_x_value) |
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
function onOpen() { | |
SpreadsheetApp.getUi() | |
.createMenu('Get Energy Drink!') | |
.addItem('Redbull', 'redbullSelected') | |
.addItem('Monster', 'monsterSelected') | |
.addToUi(); | |
} | |
function onEdit(e) { | |
var r1 = e.range; |
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
function myFunction() { | |
// スクリプトが紐付いているスプレッドシートの参照を取得 | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.rename("Test_Spreadsheet_renamed_1"); | |
// シートを追加 | |
ss.insertSheet("Test Sheet"); | |
// スクリプト実行時にアクティブなシートの参照を取得 | |
var sheet = ss.getActiveSheet(); | |
// B3のセルを取得 |