$ GOOS=linux GOARCH=amd64 go build hello.go # For Linux
$ GOOS=darwin GOARCH=amd64 go build hello.go # For Mac
$ GOOS=windows GOARCH=amd64 go build hello.go # For windows
$ GOOS=android GOARCH=amd64 go build hello.go # For Android
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
" https://knowledge.sakura.ad.jp/23248/ | |
" dein.vim settings {{{ | |
" install dir {{{ | |
let s:dein_dir = expand('~/.cache/dein') | |
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' | |
" }}} | |
" dein installation check {{{ | |
if &runtimepath !~# '/dein.vim' | |
if !isdirectory(s:dein_repo_dir) |
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
module github.com/skanehira/docui | |
go 1.12 | |
require ( | |
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect | |
github.com/Microsoft/go-winio v0.4.14 // indirect | |
github.com/Sirupsen/logrus v1.4.2 | |
github.com/docker/distribution v2.7.1+incompatible // indirect | |
// v17.05.0-ce |
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
- テストを書く | |
- コーラが出る出るテストを書く | |
- コーラが出る関数を書く | |
- 100円を入れるテストを書く | |
- InsetCoin()関数のテストを書く | |
- 100円を入れたら何もおきない | |
- 100円以外を入れたらエラーを返す | |
- PushButton()関数のテストを書く | |
- 100円が投入済みだったらコーラが出る | |
- 100円が投入が入っていなかったら何も出ない |
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 Greeter { | |
hello() { return 'Hello World'; } | |
} | |
new Greeter().hello(); |
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
// Copyright © 2016 budougumi0617. All rights reserved. | |
package com.github.budougumi0617.concurrent; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; |
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
// © 2016- @budougumi0617 | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
//using MonoBrickFirmware.Movement; | |
using Moq; | |
namespace budougumi0617 | |
{ | |
/// <summary> | |
/// Sample test code for EV3 software on Visual Studio 2015. |
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
//CONFIRMATIONダイアログ生成 | |
Alert alert = new Alert(AlertType.CONFIRMATION); | |
//DaialogPaneの各領域に値を設定 | |
alert.setTitle("Confirmation Dialog"); | |
alert.setHeaderText("Look, a Confirmation Dialog"); | |
alert.setContentText("Are you ok with this?"); | |
//Alertダイアログなので、戻り値はOprtional<ButtonType> | |
Optional<ButtonType> result = alert.showAndWait(); | |
if (result.get() == ButtonType.OK){ |
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
//Before study Java Education | |
{ | |
Customer[] selectedCustomers = new Customer[MAX_SIZE]; | |
int selectedCount = 0; | |
for (int i = 0; i < salesmen.length(); i++){ | |
if (salesmen[i].get_city().equals(city)){ | |
Customer[] customers = salesmen[i].getCustomers(); | |
for (int j = 0; j < customers.length(); j++) { | |
if (customers[j].getSalary() > 1000000) { |
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
for i in 1...keyword_arrays.length | |
seminars_sel = seminars_sel.or(seminars.matches("\%#{keyword_arrays[i]}\%")) | |
end |
NewerOlder