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
typealias Year = Int | |
fun main(args: Array<String>) { | |
args.map(String::toInt) | |
.partition(Year::isLeapYear).also { | |
it.first.forEach { | |
println("${it}年はうるう年です。") | |
} | |
it.second.forEach { | |
println("${it}年はうるう年ではありません。") |
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 HogeActivity : AppCompatActivity(), HogeListener { | |
// ... | |
interface HogeListener { | |
fun onHogeButtonClicked() | |
} |
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 interface GitHubApi { | |
@GET("users/{user_name}") | |
Call<User> getUser(@Path("user_name") String user); | |
@GET("users/{user_name}/{repos}") | |
Call<Repos> getRepos(@Path("user_name") String user); | |
} |
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[] strings = {"a", "b"}; | |
Log.d("test", strings[2]); |
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
argv[0] = node | |
argv[1] = /workspace/test.js | |
argv[2] = aaa | |
argv[3] = bbb | |
argv[4] = ccc | |
argv[5] = ddd | |
argv[6] = eee |
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
$curl "http://api.example.com/hoge.json | python -mjson.tool |
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 static final int READ_REQUEST_CODE = 42; | |
ImageView imageView; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Button button1 = (Button)findViewById(R.id.button1); |
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
$ brew upgrade git |
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
http-proxy [ID]:[PassWord]@http://[proxy-server-url]:[port] | |
https-proxy [ID]:[PassWord]@http://[proxy-server-url]:[port] |
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
$ npm -v |
NewerOlder