This file contains 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
import com.google.api.client.googleapis.json.GoogleJsonResponseException; | |
import com.google.api.client.http.HttpRequest; | |
import com.google.api.client.http.HttpRequestInitializer; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.http.javanet.NetHttpTransport; | |
import com.google.api.client.json.JsonFactory; | |
import com.google.api.client.json.jackson2.JacksonFactory; | |
import com.google.api.client.util.DateTime; | |
import com.google.api.services.youtube.YouTube; | |
import com.google.api.services.youtube.model.PageInfo; |
This file contains 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
#!/bin/bash | |
GMTOOL=/Applications/Genymotion.app/Contents/MacOS/gmtool | |
UUIDS=() | |
NAMES=() | |
INDEX=0 | |
while read -r line; do | |
UUIDS[${#UUIDS[@]}]=$(echo -n $line | cut -f1 -d'|') |
This file contains 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
gradle.taskGraph.whenReady { | |
println "rootProject: " + rootProject.name | |
println "childProjects: " + rootProject.childProjects | |
def dot = new File(rootProject.buildDir, 'project.dot') | |
dot.delete() | |
def command = "./gradlew " + gradle.startParameter.getTaskNames().join(" ") | |
println "command: " + command |
This file contains 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 agpVersion = '3.5.0-alpha03' | |
repositories { | |
google() | |
jcenter() | |
} | |
configurations { | |
agp | |
} |
This file contains 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
convert '(' ~/Desktop/before.png -flatten -grayscale Rec709Luminance ')' \ | |
'(' ~/Desktop/after.png -flatten -grayscale Rec709Luminance ')' \ | |
'(' -clone 0-1 -compose darken -composite ')' \ | |
-channel RGB -combine ~/Desktop/diff.png |
This file contains 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
#!/usr/bin/env bash | |
# Find all added *.kt files from last commit and mv to *.java | |
for f in $(git diff --name-status --diff-filter='A' HEAD~ "*.kt" | cut -f 2); | |
do mv -- "$f" "${f%.kt}.java"; | |
done | |
# Commit the kt to java changes | |
git add . | |
git commit -m"kt to java" |
This file contains 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
/** | |
* 1) Change agpVersion | |
* 2) Run './gradlew dumpSources' | |
* 3) Check changeset into source control | |
*/ | |
def agpVersion = 'UPDATE_THIS' | |
repositories { | |
google() | |
jcenter() |
This file contains 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
import groovy.json.JsonSlurper | |
import static java.nio.charset.Charset.defaultCharset | |
import static java.util.concurrent.TimeUnit.SECONDS | |
// Captures build and environment data and stores it in build scans via custom tags, links, | |
// and values, for one-off and trend analyses. | |
gradleEnterprise { | |
buildScan { |
This file contains 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
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 |