Skip to content

Instantly share code, notes, and snippets.

View PavelSynek's full-sized avatar

Pavel Synek PavelSynek

  • Czech Republic
View GitHub Profile
{"v":"5.1.10","fr":30,"ip":0,"op":309,"w":175,"h":175,"nm":"2019_18_myair_175px_alza-COMP","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null SCALE","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[87.5,87.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[1,0.167,0.167],"y":[0,0,0]},"n":["0p667_1_1_0","0p667_1_0p167_0","0p667_1_0p167_0"],"t":202,"s":[100,100,100],"e":[10,100,100]},{"i":{"x":[0,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0_1_0p333_0","0p833_1_0p333_0","0p833_1_0p333_0"],"t":209,"s":[10,100,100],"e":[100,100,100]},{"i":{"x":[0,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"n":["0_1_0p167_0","0p833_1_0p167_0","0p833_1_0p167_0"],"t":216,"s":[100,100,100],"e":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[1,0.167,0.167],"y":[0,0,0]},"n":["0p667_1_1_0","0p667_1_0p167_0","0p667_1_0p167_0"],"t":292,"s":[100,1
{"v":"5.1.10","fr":30,"ip":0,"op":309,"w":175,"h":175,"nm":"2019_18_myair_175px_alza-COMP","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null SCALE","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[87.5,87.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[1,0.167,0.167],"y":[0,0,0]},"n":["0p667_1_1_0","0p667_1_0p167_0","0p667_1_0p167_0"],"t":202,"s":[100,100,100],"e":[10,100,100]},{"i":{"x":[0,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0_1_0p333_0","0p833_1_0p333_0","0p833_1_0p333_0"],"t":209,"s":[10,100,100],"e":[100,100,100]},{"i":{"x":[0,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"n":["0_1_0p167_0","0p833_1_0p167_0","0p833_1_0p167_0"],"t":216,"s":[100,100,100],"e":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[1,0.167,0.167],"y":[0,0,0]},"n":["0p667_1_1_0","0p667_1_0p167_0","0p667_1_0p167_0"],"t":292,"s":[100,1
{
"v": "5.1.10",
"fr": 30,
"ip": 0,
"op": 309,
"w": 175,
"h": 175,
"nm": "2019_18_myair_175px_alza-COMP",
"ddd": 0,
"assets": [
@Provides
@Singleton static Interceptor loggingInterceptor() {
return new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY);
}
@Provides
@Singleton static Interceptor headerInterceptor() {
return new Interceptor() {
@Override public Response intercept(Chain chain) throws IOException {
Request request = chain.request().newBuilder()
[
{
"name": "Stopkova plzeňská pivnice",
"url": "http://www.kolkovna.cz/cs/stopkova-plzenska-pivnice-16",
"selector": ".dailyMenuWeek section:nth-child(1) table.menu.dailyMenu tr"
},
{
"name": "Lokál U Caipla",
"url": "http://lokal-ucaipla.ambi.cz/cz/",
"selector": "div.lunch-menu-wrapper div.boxx:nth-child(7) table tr:not(.links)"

Keybase proof

I hereby claim:

  • I am pavelsynek on github.
  • I am pavelsynek (https://keybase.io/pavelsynek) on keybase.
  • I have a public key ASBXq0p8puULaw4zykS13bwvIjub400s6-kmBb8B4Od1HAo

To claim this, I am signing this object:

public abstract class SimpleOrientationListener extends OrientationEventListener {
public static final int CONFIGURATION_ORIENTATION_UNDEFINED = Configuration.ORIENTATION_UNDEFINED;
private volatile int defaultScreenOrientation = CONFIGURATION_ORIENTATION_UNDEFINED;
public int prevOrientation = OrientationEventListener.ORIENTATION_UNKNOWN;
private Context ctx;
private ReentrantLock lock = new ReentrantLock(true);
public SimpleOrientationListener(Context context) {
super(context);
@PavelSynek
PavelSynek / WrapGridLayoutManager.java
Created November 5, 2015 16:13 — forked from ArthurSav/WrapGridLayoutManager.java
GridLayoutManager with working wrap_content.
package com.inperson.android.utils.leastview;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
public class WrappableGridLayoutManager extends GridLayoutManager {
@PavelSynek
PavelSynek / EndlessListActivity.java
Created November 3, 2015 17:17 — forked from polbins/EndlessListActivity.java
Android Endless Scroll using RecyclerView
public class EndlessListActivity<D> extends Activity {
private EndlessRecyclerOnScrollListener mEndlessScrollListener;
private EndlessListAdapter mAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
RecyclerView listView = (RecyclerView) findViewById(R.id.list);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
@PavelSynek
PavelSynek / rxclicks.txt
Created October 16, 2015 13:45
Rx Recycler View Clicks
private PublishSubject<View> clickSubject = PublishSubject.create();
public Observable<View> getItemClickSignal() {
return clickSubject;
}
@Override
public InstallationViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_installation, parent, false);