- multiDex が必要な時に、
multiDexEnabled true
にする事。- minSdk が
< 21
なら開発用の flavor を minSdk ≧ 21 にする。
- minSdk が
- Gradle Android プラグインを最新にする事。
- Gradle の heap をあげていく!
gradle.properties
にてorg.gradle.jvmargs=-Xmx4048m -XX:MaxPermSize=512m
- Instant Run を有効化する。
- 無駄に AndroidManifest とかを各ビルドに弄らない。
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
ls | ruby -ne 'BEGIN{puts("lets go");$array = []};$array << $_.chomp;END{puts $array.inspect;puts "finished"}' |
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
/** | |
* CSS Coding Tips : Minimize code duplication | |
*/ | |
button { | |
padding: 6px 16px; | |
border: 1px solid #446d88; | |
background: #58a linear-gradient(#77a0bb, #58a); | |
border-radius: 4px; | |
box-shadow: 8 1px 5px gray; |
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
/** | |
* CSS Coding Tips: Maintainability versus brevity | |
*/ | |
div { | |
position: absolute; | |
top: calc(50% - 25px); | |
left: calc(50% - 25px); | |
height: 50px; | |
width: 50px; |
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
/** | |
* CSS Coding Tips: Inheritance | |
*/ | |
div { | |
margin-top: 50px; | |
position: relative; | |
border: 1px solid black; | |
background: pink; | |
} |
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
/** | |
* CSS Coding Tips: Trust your eyes | |
*/ | |
div { | |
position: absolute; | |
top: 100px; | |
} | |
span { |
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
const el = document.querySelector('.el'); | |
elA.addEventListener('animationend', () => { | |
elA.classList.remove('.animating'); | |
}): | |
// triggers CSS animation which time varies | |
elA.classList.add('.animating'); | |
// How to check that the class `animating` is rightly removed when the animation finishes? |
I hereby claim:
- I am oldergod on github.
- I am oldergod (https://keybase.io/oldergod) on keybase.
- I have a public key whose fingerprint is 8B6C 86DC 67D8 0CE9 B1C8 2822 AADC 8990 FC32 3E48
To claim this, I am signing this object:
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 LoginContextUnwrappingConverter extends Converter.Factory { | |
@Override | |
public Converter<ResponseBody, LoginContext> | |
responseBodyConverter(Type type, | |
Annotation[] annotations, | |
Retrofit retrofit) { | |
if (type != LoginContext.class) { | |
return null; | |
} |