どうやら</summary>
後の空行以降から整形される。
違いは</summary>
後の空行だけ。
<details>
<summary>これは中身が整形されない</summary>
1. 野菜**A**の皮を剥く。
2. 乱切りにする。
import java.lang.AssertionError | |
data class Point(val x: Float, val y: Float) | |
fun pointAt(x: Float, y: Float) = Point(x, y) | |
data class Line(val p1: Point, val p2: Point) | |
infix fun Point.to(other: Point) = Line(this, other) |
package com.example.tomoyashibata.myapplication | |
import android.graphics.Bitmap | |
import android.graphics.BitmapFactory | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.util.Log | |
import android.widget.Toast | |
import kotlinx.android.synthetic.main.activity_main.* | |
import kotlinx.coroutines.experimental.CommonPool |
// Groovy 3.0.0からラムダ記法が使えます。 | |
//def twice = (int num) -> { num * 2 } | |
//def twice = (num) -> { num * 2 } | |
def twice = num -> num * 2 | |
twice(100) | |
assert twice instanceof Closure | |
def hoge = () -> "HOGE" | |
assert hoge() == "HOGE" |
Android Studio30分集中超絶技巧100選 DroidKaigi 2018 | |
山本 ユウスケ @yusuke | |
マウス、トラックパッドを使うのはやめましょう | |
今日は以下のキーマップの話です | |
Mac OSX: Mac OSX 10.5+ | |
Windows/Linux: Default | |
他のキーマップだとQiitaやドキュメント、ブログなどを見る際に苦労します。 | |
設定画面 Cmd + , (Ctrl + Alt + S) | |
プロジェクト設定画面 Cmd + ; | |
File > Power Save Modeでバッテリー節約 |
The Map Remote tool changes the request location, per the configured mappings, so that the response is transparently served from the new location as if that was the original request.
Using this feature for http
resources does't require anything else apart from just configuring your Map Remote entry.
Always make sure you are clearing your cache before you test. Even if Charles is configured properly you might not see the changes unless the browser gets the resource again from the server and not for its local cache.
// something | |
// jenkins | |
import groovy.json.* | |
ext { | |
jenkinsUrl = 'http://localhost:8080' | |
buildNumber = System.getenv("BUILD_NUMBER"); | |
jobName = System.getenv("JOB_NAME"); | |
println "build number is ${buildNumber}" |
import android.os.Parcel; | |
import android.os.Parcelable; | |
public class ParcelableHelper { | |
/** | |
* There is not always a guarantee that Parcelable values will be immediately written out and | |
* read back in. For data data that mutable (its own issue), this can be a problem. This is | |
* for the times when it would be great to have confidence that you will be working with a copy | |
* of that data. | |
*/ |
@echo off | |
:: pecoってディレクトリ移動をするスクリプト. | |
:: | |
:: TODO 文字化けしてた('A`) | |
:init | |
set _pecocd_flags= | |
set _pecocd_folder=%CD% | |
:args | |
if "%1"=="" goto :peco |
@echo off | |
for /f %%i in ('gradlew tasks ^| peco') do ( | |
echo gradlew %%i | |
gradlew %%i | |
break | |
) |