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
| 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); |
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
| test gist | |
| A lot | |
| more | |
| lines | |
| than |
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
| 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); |
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
| Test 1 | |
| Modifying this gist. |
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
| /* | |
| * Copyright (c) 2011 Eddie Ringle <[email protected]> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. |
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/sh | |
| # | |
| # All-in-one script for system maintenence via APT | |
| # | |
| # sudo wget http://files.idlesoft.net/pub/update -O /usr/local/sbin/update | |
| # sudo chmod a+x /usr/local/sbin/update | |
| # | |
| echo ".::Updating sources::." | |
| apt-get update |
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
| /* | |
| * Copyright (c) 2011 Eddie Ringle <eddie@eringle.net> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. |
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
| /* | |
| * Copyright (c) 2011 Eddie Ringle <[email protected]> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. |
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
| /* | |
| * Copyright (c) 2011 Eddie Ringle <[email protected]> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. |
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
| ### | |
| UI Element classes | |
| Written by Eddie Ringle | |
| ### | |
| class Button extends HTMLButtonElement | |
| constructor: (@className, value) -> | |
| @innerHTML = value | |
| setValue: (value) -> |
OlderNewer