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 | |
| setlocal | |
| call :GetUnixTime UNIX_TIME | |
| adb shell screencap -p /sdcard/%UNIX_TIME%.png | |
| adb pull /sdcard/%UNIX_TIME%.png | |
| adb shell rm -r /sdcard/%UNIX_TIME%.png | |
| goto :EOF | |
| :GetUnixTime | |
| setlocal enableextensions |
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
| UNIX_TIME=$(date -u +"%s") | |
| adb shell screencap -p /sdcard/$UNIX_TIME.png | |
| adb pull /sdcard/$UNIX_TIME.png | |
| adb shell rm -r /sdcard/$UNIX_TIME.png |
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
| #!/bin/bash | |
| wget -r -np -R index.html {url} --no-check-certificate {user} --password {password} |
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 com.sample; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentSender; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; |
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 com | |
| import io.reactivex.Observable | |
| import org.junit.Assert.assertEquals | |
| import org.junit.Test | |
| class RxJavaTests { | |
| @Test | |
| fun foo1() { // fails, doOnDispose isn't called (Observable isn't disposed?) |
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
| import com.quizlet.android.logging.ConsoleLogger | |
| import com.quizlet.android.logging.ConsoleLoggingTree | |
| import io.reactivex.Completable | |
| import io.reactivex.Scheduler | |
| import io.reactivex.schedulers.Schedulers | |
| import io.reactivex.schedulers.TestScheduler | |
| import org.junit.After | |
| import org.junit.Before | |
| import org.junit.Test | |
| import timber.log.Timber |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>JSON Pretty Print</title> | |
| </head> | |
| <body> | |
| <textarea id="input" rows="40" cols="64" placeholder="Paste JSON here"></textarea> | |
| <textarea id="output" rows="40" cols="64" readonly="readonly" placeholder="Result"></textarea> |
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
| #! /bin/bash | |
| path=build/data | |
| mkdir -p $path | |
| adb backup -f $path/appdata.ab -noapk com.example.app | |
| ( cd $path && dd if=appdata.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf - ) |
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 foo | |
| class Apple | |
| fun Apple.slice() { } | |
| @JvmSynthetic | |
| fun Apple.peel() { } |
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 com.quizlet.perf | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| import com.quizlet.android.logging.ConsoleLogger | |
| import com.quizlet.android.logging.ConsoleLoggingTree | |
| import org.junit.After | |
| import org.junit.Before | |
| import org.junit.Test | |
| import timber.log.Timber |
OlderNewer