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 -ef | |
URL=${URL:-http://www.goproblems.com/mkoff/goproblemsSGF.tgz} | |
WORKDIR=${WORKDIR:-.} | |
mkdir -p "$WORKDIR" | |
cd "$WORKDIR" | |
[[ -s goproblemsSGF.tgz ]] || \ | |
wget "$URL" |
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 | |
mkdir Robotium-Screenshots | |
cd Robotium-Screenshots | |
while read str | |
do | |
echo "<pre>${str}</pre>" | |
if [[ $str =~ adb.*-s.*jpg ]]; then | |
`${BASH_REMATCH[0]}` |
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 groovy | |
def material_home="/home/ligi/git/3rd/material-design-icons/" | |
def cat=args[0] | |
def elm=args[1] | |
["xhdpi","mdpi","hdpi","xxhdpi","xxxhdpi"].each() { | |
"mkdir drawable-$it".execute() | |
def cmd="cp $material_home$cat/drawable-$it/$elm"+".png drawable-$it" | |
println cmd | |
println cmd.execute() |
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
➜ ~ adb shell pm list packages | grep org.ligi.passandroid | |
package:org.ligi.passandroid.test | |
package:org.ligi.passandroid | |
➜ ~ adb shell run-as org.ligi.passandroid | |
run-as: Package 'org.ligi.passandroid' is unknown |
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 | |
set +e | |
download-android | |
echo y | android update sdk --no-ui --filter android-18 > /dev/null | |
echo y | android update sdk --no-ui --filter sys-img-armeabi-v7a-android-18 --all > /dev/null | |
echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a --skin 1280x800 | |
emulator -avd test -no-skin -no-audio -no-window & |
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
Hi, | |
We just use part of your code to get airpalne boarding passes. | |
Others are developed by us. We will remove them in the next | |
version. Thanks for your notification again. | |
Pass2U Service Team | |
2015-08-11 8:50 GMT+08:00 ligi <ligi@ligi.de>: |
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 java.io.File; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import com.nostra13.universalimageloader.cache.disc.DiscCache; | |
/** | |
* DiscCache implementation that takes care that | |
* the cache is not growing like cancer | |
* | |
* As argument for deleting we use the lastModified TimeStamp |
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
package org.ligi.gpluswall.tv; | |
import android.app.Activity; | |
import android.os.Handler; | |
import android.widget.ProgressBar; | |
public class ProgressUpdaterThread implements Runnable { | |
private Handler hndl=new Handler(); | |
private int pause_time; | |
private long pause_start; |
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
diff --git a/AndroidManifest.xml b/AndroidManifest.xml | |
index a0e277a..83cfea2 100644 | |
--- a/AndroidManifest.xml | |
+++ b/AndroidManifest.xml | |
@@ -221,8 +221,53 @@ | |
<data android:mimeType="text/xml"/> | |
</intent-filter> | |
+ | |
+ <intent-filter> |
OlderNewer