master 永远处于稳定状态,这个分支代码可以随时用来部署。不允许在该分支直接提交代码。
开发分支,包含了项目最新的功能和代码,所有开发都在 develop 上进行。一般情况下小的修改直接在这个分支上提交代码。
| public void showCustomDialog() { | |
| Dialog dialog = new Dialog(this, R.style.Theme.CustomDialog); | |
| dialog.setContentView(R.layout.custom_dialog); | |
| // ... | |
| dialog.show(); | |
| } |
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
| import com.android.volley.toolbox.HurlStack; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
| * uses OkHttp as its transport. | |
| */ |
| /* | |
| * 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 |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Circle Internet Financial | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| import android.content.Context; | |
| import android.support.annotation.NonNull; | |
| import android.support.design.widget.AppBarLayout; | |
| import android.support.v4.view.MotionEventCompat; | |
| import android.support.v4.view.NestedScrollingChild; | |
| import android.support.v4.view.NestedScrollingChildHelper; | |
| import android.support.v4.view.VelocityTrackerCompat; | |
| import android.support.v4.view.ViewCompat; | |
| import android.support.v4.widget.ScrollerCompat; | |
| import android.util.AttributeSet; |
| package com.dopplerlabs.hereactivelistening.hacks; | |
| import android.content.Context; | |
| import android.content.res.Resources; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Matrix; | |
| import android.graphics.RectF; | |
| import android.graphics.drawable.BitmapDrawable; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; |
| // ... | |
| Request request = new Request.Builder() | |
| .url(url) | |
| .tag(TAG) | |
| .build(); | |
| // Cancel previous call(s) if they are running or queued | |
| OkHttpUtils.cancelCallWithTag(client, TAG); | |
| // New call |
curl to get the JSON response for the latest releasegrep to find the line containing file URLcut and tr to extract the URLwget to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \