(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| * Copyright (C) 2014 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 |
| @Override | |
| public ViewHolder onCreateViewHolder(ViewGroup parent) { | |
| final ImageCardView cardView = new ImageCardView(mContext); | |
| cardView.setOnFocusChangeListener(new View.OnFocusChangeListener() { | |
| @Override | |
| public void onFocusChange(View view, final boolean isFocused) { | |
| final View infoField = view.findViewById(R.id.info_field); | |
| final TextView contentField = (TextView)view.findViewById(R.id.content_text); | |
| final TextView titleField = (TextView)view.findViewById(R.id.title_text); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| FROM ubuntu | |
| RUN apt-get -y install wget tar ca-certificates | |
| RUN wget https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.2.23.linux-amd64.go1.1.2.tar.gz | |
| RUN tar zxvf nsq-0.2.23.linux-amd64.go1.1.2.tar.gz | |
| RUN mkdir -p /usr/local/bin | |
| RUN cp /nsq-0.2.23.linux-amd64.go1.1.2/bin/nsqd /usr/local/bin | |
| RUN mkdir -p /data | |
| VOLUME ["/data"] |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| global | |
| log 127.0.0.1 local0 notice | |
| maxconn 50000 | |
| daemon | |
| stats socket /tmp/proxystats level admin | |
| defaults | |
| log global | |
| mode http | |
| option httplog | |
| option dontlognull |