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
| public static String join(List<?> list, String delim) { | |
| StringBuilder buf = new StringBuilder(); | |
| int num = list.size(); | |
| for (int i = 0; i < num; i++) { | |
| if (i != 0) | |
| buf.append(delim); | |
| if (list.get(i) instanceof String) | |
| buf.append(list.get(i)); | |
| else if (list.get(i).getClass() == Integer.TYPE || list.get(i).getClass() == Integer.class) | |
| buf.append(Integer.toString(((Integer) list.get(i)))); |
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
| #!/usr/bin/env python | |
| import csv | |
| import difflib | |
| import sys | |
| import json | |
| traces = {} | |
| for row in csv.DictReader(open('SC_Android_Crash_Log.csv', 'r')): | |
| trace = row['stack_trace'] | |
| if trace: |
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
| if (moreStack) { | |
| final String[] ret = new String[1]; | |
| try { | |
| Thread t = new Thread(null, null, "executor", 16*1024) { | |
| @Override public void run() { | |
| try { | |
| ret[0] = ruby.evalScriptlet(code, scope).inspect().toJava(String.class).toString(); | |
| } catch (final RaiseException e) { | |
| handler.post(new Runnable() { |
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
| exporting patch: | |
| # HG changeset patch | |
| # User Jan Berkel <[email protected]> | |
| # Date 1298285839 -3600 | |
| # Node ID 77f526c62a3c4a3aba0dd26166ce22dc6b82819a | |
| # Parent f39bddff3d1c02ffe74b22095434fafa3603307b | |
| Adding build.xml | |
| diff -r f39bddff3d1c -r 77f526c62a3c .hgignore | |
| --- a/.hgignore Thu Dec 30 00:39:09 2010 +0900 |
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
| 3064 adb remount | |
| 3065 adb shell | |
| 3066 adb shell rm -f /system/app/Email.apk | |
| 3067 adb uninstall com.android.email | |
| 3068 adb shell rm -f /system/app/CarHomeLauncher.apk | |
| 3069 adb uninstall com.android.cardock | |
| 3070 adb shell rm -f /system/app/Music.apk | |
| 3071 adb uninstall com.android.music | |
| 3072 adb shell rm -f /system/app/Protips.apk | |
| 3073 adb uninstall com.android.protips |
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
| AudioRecord-Java E [ android.media.AudioRecord ] Error code -20 when initializing native AudioR | |
| ecord object. | |
| 12127 System.err W java.lang.IllegalStateException: Unable to retrieve AudioRecord pointer for | |
| setPositionUpdatePeriod() | |
| 12127 System.err W at android.media.AudioRecord.native_set_pos_update_period(Native Method) | |
| 12127 System.err W at android.media.AudioRecord.setPositionNotificationPeriod(AudioRecord.java | |
| :663) | |
| 12127 System.err W at com.soundcloud.utils.record.CloudRecorder.<init>(CloudRecorder.java:180) | |
| 12127 System.err W at com.soundcloud.android.service.CloudCreateService.startRecording(CloudCr |
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
| public abstract class AsyncTask<T, P, R> { | |
| abstract doSomething(T... p); | |
| } | |
| public abstract class VorbisEncoderTask<Param> extends AsyncTask<Param, Integer, Param> { | |
| abstract doSomething(Param... p); | |
| } | |
| class EncodeOggTask extends VorbisEncoderTask<Foo> { | |
| doSomeSomething(Foo... f) { } |
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
| [apply] | |
| whitespace = nowarn | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| interactive = auto | |
| ui = auto | |
| [color "branch"] | |
| current = yellow reverse |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
| } | |
| PS1="\[\e[1;36m\]\w\[\e[0m\] \$(parse_git_branch) \$ " |
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
| Index: CrashReport/default.properties | |
| =================================================================== | |
| --- CrashReport/default.properties (revision 259) | |
| +++ CrashReport/default.properties (working copy) | |
| @@ -11,3 +11,4 @@ | |
| split.density=false | |
| # Project target. | |
| target=android-3 | |
| +acra.version=3.2-SNAPSHOT | |
| Index: CrashReport/build.xml |