Skip to content

Instantly share code, notes, and snippets.

View aayvazyan-tgm's full-sized avatar

Ari Ayvazyan aayvazyan-tgm

  • Austria, Vienna
View GitHub Profile
@aayvazyan-tgm
aayvazyan-tgm / Java Diagonal Array Slicer
Last active November 19, 2016 16:49
Slice m,n sized Java array diagonally in both directions
//@Author Ari Ayvazyan
//Created 19.11.2016
public static int[][] sliceArrayDiag1(int[][] array, boolean directoinTopRightToBottomLeft) {
int[][] slices = new int[array.length + array[0].length - 1][];
for (int i = 0; i < array.length + array[0].length - 1; i++) {
int iTemp = i;
@aayvazyan-tgm
aayvazyan-tgm / gradle-detect-sdk-buildtools
Last active August 29, 2015 14:16 — forked from beartung/gradle-detect-sdk-buildtools
My Windows compatible version of egeek's sdk detector
I moved this to a seperate github project due to fundamental changes:
https://github.com/aayvazyan-tgm/autodetect_android_sdk_and_buildTools