I hereby claim:
- I am robmorgan on github.
- I am rjm (https://keybase.io/rjm) on keybase.
- I have a public key whose fingerprint is C9F8 AC44 6E02 2633 DBCB 3BE6 A55C 18BE C248 ACFB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Pearhub Tutorial Script. | |
* | |
* @package PearhubTutorial | |
* @version $Id$ | |
*/ | |
/** |
<?php | |
require_once 'pearhubtutorial.php'; | |
echo PearhubTutorial::getString(); // returns 'Hello World' |
<?php | |
// need a true/false return if a needle is found. | |
$haystack = "this is the haystack/string full of goodness needle 1 needle 2"; // haystack | |
$needles = array("needle 1", "needle 2", "needle 3"); // needles | |
foreach ($needles as $key => $val) { | |
if (strpos($haystack, $val)) { | |
// do something | |
echo 'found match'; |
<?php | |
require_once 'Zend/Log.php'; | |
require_once 'ZendX/Log/Writer/Nodelog.php'; | |
$writer = new ZendX_Log_Writer_Nodelog(); | |
$logger = new Zend_Log($writer); | |
$logger->info('Informational message'); |
// Redistributable Slider Algorithm | |
var sliders = $('.slider'); | |
var max = 350; | |
var slidernum = 3; | |
var sliderVals = [max/slidernum,max/slidernum,max/slidernum,max/slidernum,max/slidernum,max/slidernum,max/slidernum]; | |
var amounts = [0,0,0,0,0,0,0] | |
var lockedSlider = 0; |
<?php | |
/** | |
* Creates a thumbnail for any type of pre-existing image. Always saves as PNG image | |
* Works properly with GIF transparency and PNG Alpha Transparency. | |
* If Image is less than max_width and max_height it will stay at the size of the image. | |
* | |
* @param string - The location of the pre-existing image. | |
* @param string - The location to save the thumbnail, including filename and extension. |
==> Installing wireshark dependency: pkg-config | |
==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkg | |
==> make | |
==> make check | |
==> make install | |
Warning: m4 macros were installed to "share/aclocal". | |
Homebrew does not append "/usr/local/share/aclocal" | |
to "/usr/share/aclocal/dirlist". If an autoconf script you use |
==> Installing wireshark dependency: libtasn1 | |
==> Downloading http://ftpmirror.gnu.org/libtasn1/libtasn1-2.11.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/libtasn1/2.11 | |
==> make install | |
/usr/local/Cellar/libtasn1/2.11: 48 files, 572K, built in 57 seconds | |
==> Installing wireshark dependency: gnutls | |
==> Downloading http://ftpmirror.gnu.org/gnutls/gnutls-2.12.16.tar.bz2 | |
######################################################################## 100.0% | |
==> ./configure --disable-debug --disable-guile --disable-static --prefix=/usr/local/Cellar/gnutls/2.12.16 --with-libgcrypt --w |