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
#!/usr/bin/env node | |
console.log('yay gist') |
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
#!/usr/bin/env node | |
console.log('yay gist') |
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
#!/bin/bash | |
# setup AWS CLI first | |
# http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html | |
# configure AWS CLI (e.g. use IAM role for S3 access) | |
export AWS_DEFAULT_REGION=us-east-1 | |
export AWS_ACCESS_KEY_ID=IDHERE | |
export AWS_SECRET_ACCESS_KEY=KeyHere |
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
/* | |
* Copyright 2016, The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
* This class is used for buttons that have a pressed state animation. | |
* Can't use default click() because espresso bug where click becomes long click, which causes | |
* animation, which causes tests to stall because ui thread is busy. :( | |
* https://code.google.com/p/android-test-kit/issues/detail?id=45 | |
*/ | |
public class CallOnClickAction implements ViewAction { | |
@Override | |
public Matcher<View> getConstraints() { | |
return allOf(isClickable(), isDisplayed()); |
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
import java.util.Arrays; | |
import java.util.List; | |
import javax.xml.ws.Response; | |
import rx.Observable; | |
import rx.subjects.BehaviorSubject; | |
public final class Demo { | |
interface Response { |