Skip to content

Instantly share code, notes, and snippets.

View yairkukielka's full-sized avatar

Yair Kukielka yairkukielka

  • Open Assessment Technologies
  • Madrid
View GitHub Profile
@yairkukielka
yairkukielka / index.js
Created July 27, 2017 00:11 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@yairkukielka
yairkukielka / index.js
Created July 27, 2017 00:11 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@yairkukielka
yairkukielka / aws_s3_ls.sh
Created July 27, 2017 00:08 — forked from multidis/aws_s3_ls.sh
List of files in a specific AWS S3 location in a shell script.
#!/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
/*
* 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 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());
@yairkukielka
yairkukielka / RxJavaPagination.java
Last active August 29, 2015 14:24 — forked from akarnokd/Demo.java
Pagination with RxJava
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 {