Skip to content

Instantly share code, notes, and snippets.

View EddieRingle's full-sized avatar

Eddie Ringle EddieRingle

View GitHub Profile
diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java
index 2a695e5..c38ffe6 100644
--- a/core/java/android/widget/ProgressBar.java
+++ b/core/java/android/widget/ProgressBar.java
@@ -210,7 +210,7 @@ public class ProgressBar extends View {
drawable = a.getDrawable(R.styleable.ProgressBar_indeterminateDrawable);
if (drawable != null) {
- drawable = tileifyIndeterminate(drawable);
+ //drawable = tileifyIndeterminate(drawable);
test gist
A lot
more
lines
than
function get_first_image($html)
{
// We're trying to find and retrieve the SRC of the first image tag in the content
preg_match("/<img(.*)>/Uise", $html, $matches);
if(@trim($matches[1]) !== "")
{
// Found an image tag!
// Get the SRC parameter ...
preg_match("/src=\"(.*)\"/Uise", $matches[1], $image);