- 2014/12/12
- nulltask @ いいオフィス
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
png_files = (git.modified_files + git.added_files).uniq.select { |file| file.include?("res/") && file.end_with?('.png') && !file.end_with?('.9.png') } | |
png_files.each do |filename| | |
warn("該当のPNG画像をWebP or SVGに変更できないか検討してみましょう", file: filename, line: 0) | |
end |
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
var TOKEN = PropertiesService.getScriptProperties().getProperty("slack_api_token"); | |
function slack_id(email) { | |
var user = lookupByEmailSlackUser(email); | |
if (user == undefined) { | |
return "該当アドレスのSlack名は見つかりませんでした" | |
} | |
return "@" + user.name | |
} |
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
// Create RequestBody | |
FormBody.Builder builder = new FormBody.Builder(); | |
List<String> additionalFields = ...; | |
if (additionalFields.isEmpty()) { | |
builder.add("additional_fields[]", ""); | |
} else { | |
for (String additionalField : additionalFields) { | |
builder.add("additional_fields[]", additionalField); | |
} | |
} |
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 TimeoutInterceptor : Interceptor { | |
companion object { | |
const val CONNECT_TIMEOUT = "CONNECT_TIMEOUT" | |
const val READ_TIMEOUT = "READ_TIMEOUT" | |
const val WRITE_TIMEOUT = "WRITE_TIMEOUT" | |
} | |
@Throws(IOException::class) |
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
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): Intent { act=com.android.vending.INSTALL_REFERRER flg=0x10 pkg=com.os.operando.takosan cmp=com.os.operando.takosan/.InstallReferrerReceiver (has extras) } | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): key : referrer | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): value : referrer_test | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): key : referrer_timestamp_seconds | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): value : 1507022325 | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): com.android.vending.INSTALL_REFERRER | |
10-03 18:19:15.740 D/InstallReferrerReceiver(28042): com.os.operando.takosan | |
10-03 18:19:15.741 D/InstallReferrerReceiver(28042): referrer : referrer_test |
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
# adb history | |
function peco-select-adb-history() { | |
local tac | |
if which tac > /dev/null; then | |
tac="tac" | |
else | |
tac="tail -r" | |
fi | |
BUFFER=$(\history -n 1 | \ | |
eval $tac | \ |
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
diff -ru 0.5/android/support/test/filters/SdkSuppress.java 0.6-alpha/android/support/test/filters/SdkSuppress.java | |
--- 0.5/android/support/test/filters/SdkSuppress.java 2016-02-22 20:52:48.000000000 +0900 | |
+++ 0.6-alpha/android/support/test/filters/SdkSuppress.java 2016-08-02 22:18:50.000000000 +0900 | |
@@ -21,12 +21,20 @@ | |
import java.lang.annotation.Target; | |
/** | |
- * Indicates that a specific test or class requires a minimum API Level to execute. | |
+ * Indicates that a specific test or class requires a minimum or maximum API Level to execute. | |
* <p/> |
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
diff -ru ../0.5/android/support/test/annotation/UiThreadTest.java android/support/test/annotation/UiThreadTest.java | |
--- ../0.5/android/support/test/annotation/UiThreadTest.java 2016-02-22 20:52:48.000000000 +0900 | |
+++ android/support/test/annotation/UiThreadTest.java 2016-08-02 22:18:50.000000000 +0900 | |
@@ -22,18 +22,14 @@ | |
import java.lang.annotation.Target; | |
/** | |
- * This annotation should be used along with {@link android.support.test.rule.UiThreadTestRule} | |
- * or with any rule that inherits from it. When the annotation is present, the test method is | |
- * executed on the application's UI thread (or main thread). |
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 rx.playground; | |
import rx.Observable; | |
import rx.subjects.BehaviorSubject; | |
import rx.subjects.SerializedSubject; | |
public class Variable<T> { | |
private T value; | |
private final SerializedSubject<T, T> serializedSubject; |
NewerOlder