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
Observable<Boolean> passwordObservable = Observable.combineLatest( | |
validatePassword(RxViewUtils.text(mPassword)), | |
(RxViewUtils.text(mPasswordConfirm)), | |
(password, confirm) -> password.equals(confirm)); | |
Observable.combineLatest( | |
validateFirstName(RxViewUtils.text(mUsername)), | |
passwordObservable, | |
(username, password) -> username && password |
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
Observable<Boolean> passwordObservable = Observable.combineLatest( | |
validatePassword(RxViewUtils.text(mPassword)), | |
(RxViewUtils.text(mPasswordConfirm)), | |
(password, confirm) -> password.equals(confirm)); | |
Observable.combineLatest( | |
validateFirstName(RxViewUtils.text(mUsername)), | |
passwordObservable, | |
(username, password) -> username && password |
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 datetime | |
from google.appengine.ext import db | |
from random import randint | |
from google.appengine.api import users | |
import json | |
import urllib2 | |
import urllib | |
from flask import Flask | |
from flask import request | |
from threading import Timer |
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
/** Perform action of waiting for a specific view id. */ | |
public static ViewAction waitForId(final int viewId, final long millis) { | |
return new ViewAction() { | |
@Override | |
public Matcher<View> getConstraints() { | |
return isDisplayed(); | |
} | |
@Override | |
public String getDescription() { |
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 json | |
import urllib2 | |
import urllib | |
from flask import Flask | |
from flask import request | |
app = Flask(__name__) | |
post_url = 'https://api.groupme.com/v3/bots/post' | |
bot_id = 'a63fa8c46207f5b791ae25b3f8' |
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
" Environment { | |
" Basics { | |
set nocompatible " must be first line | |
set background=dark " Assume a dark background | |
if has ("unix") && "Darwin" != system("echo -n \"$(uname)\"") | |
" on Linux use + register for copy-paste | |
set clipboard=unnamedplus | |
else | |
" one mac and windows, use * register for copy-paste | |
set clipboard=unnamed |
NewerOlder