例えば、buttonの左辺をcontainer viewから20ポイント離す場合
JavaScript でスマートに非同期なコードを書くための Promise パターンの仕様のうち、then
メソッドに関する仕様であるPromises/A+の邦訳です。
お約束の文言ですが、この翻訳は間違ってるかもしれません。ご指摘・ご質問は大歓迎です。
この提言はPromises/A 仕様の提言の振る舞いを明確にし、かつ事実上の標準をカバーしつつ曖昧・問題のある部分を除いたものである。
This file contains hidden or 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
#!/bin/sh | |
set -e | |
ssh='ssh' | |
ec2din="ec2-describe-instances" | |
while [ $# -gt 0 ]; do | |
case $1 in | |
-*) | |
if [ -z "$2" ]; then | |
break |
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
- 訳者は JavaScript や Node.js に関する専門知識がほとんどありません。識者のツッコミをお待ちしております。「◯◯が分からない」等も歓迎です。
- 元記事から構成を一部変更しています。また、関数型プログラミングに関する記述のうち、議論の骨子に絡まないものは省略しています。
This file contains hidden or 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
#!/bin/sh | |
set -e | |
ssh='ssh' | |
ec2din="ec2-describe-instances" | |
while [ $# -gt 0 ]; do | |
case $1 in | |
-*) | |
if [ -z "$2" ]; then | |
break |
This file contains hidden or 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
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction) |
This file contains hidden or 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
* 一つのボタンを押している時に、他のボタンをsetEnable(false)する。 | |
その時に色を変えたくない | |
1) | |
android-sdks/platforms/android-15/data/res/drawable | |
btn_default.xml | |
android-sdks/platforms/android-15/data/res/drawable-hdpi | |
btn_default.xml で使用しているリソースをコピー。 | |
ただし .9.png という名前で存在している(そのまま持ってこればOK |
This file contains hidden or 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.esperia09.android.utils; | |
import com.esperia09.android.BuildConfig; | |
import android.util.Log; | |
public class Logger { | |
private static final boolean debug = BuildConfig.DEBUG; | |
private static final int TRACE_CALLER_COUNT = 2; |