$ git log <source_branch>..<feature_branch> --oneline | tail -1
This file contains hidden or 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
package graph; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Queue; | |
import java.util.Stack; | |
/** | |
* @author Bazlur Rahman Rokon | |
* @since 12/27/16. |
This file contains hidden or 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
package pl.info.czerwinski | |
enum class MaterialColor(val tones: Map<Int, Int> = emptyMap(), val accentTones: Map<Int, Int> = emptyMap(), val singleColor: Int? = null) { | |
RED( | |
tones = mapOf( | |
50 to 0xFFEBEE, | |
100 to 0xFFCDD2, | |
200 to 0xEF9A9A, | |
300 to 0xE57373, | |
400 to 0xEF5350, |
This file contains hidden or 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
// status bar height | |
int statusBarHeight = 0; | |
int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); | |
if (resourceId > 0) { | |
statusBarHeight = getResources().getDimensionPixelSize(resourceId); | |
} | |
// action bar height | |
int actionBarHeight = 0; | |
final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes( |
This file contains hidden or 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
private void createComment(final String body, final String reportId, final boolean isAnon) { | |
Uri.Builder builder = new Uri.Builder(); | |
builder.scheme(Constants.NETWORK_SCHEME) | |
.authority(Constants.API_ENDPOINT) | |
.path(Constants.CREATE_COMMENT_PATH); | |
final StringRequest request = new StringRequest(StringRequest.Method.POST, builder.build().toString(), new Response.Listener<String>() { | |
@Override | |
public void onResponse(String s) { |
This file contains hidden or 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
@echo off | |
rem configurable parameters | |
set SCREENCAP_FILE_PREFIX=screenshot | |
rem the dir on the device where the screenshot will be stored temporarily | |
set SCREENCAP_WORKING_DIR=/sdcard/ | |
rem adb path, leave blank if adb is already on the user or system path | |
set SCREENCAP_ADB_PATH= |
This file contains hidden or 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
def root= new File('/usr/share') | |
def full= new File('/usr/share/docs/rpm-4.4') | |
// Print the relative path of 'full' in relation to 'root' | |
// Notice that the full path is passed as a parameter to the root. | |
def relPath= new File( root.toURI().relativize( full.toURI() ).toString() ) |