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
<?php | |
/** | |
* Pearhub Tutorial Script. | |
* | |
* @package PearhubTutorial | |
* @version $Id$ | |
*/ | |
/** |
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
<?php | |
require_once 'pearhubtutorial.php'; | |
echo PearhubTutorial::getString(); // returns 'Hello World' |
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
<?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'; |
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
<?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'); |
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
// 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; |
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
<?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. |
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
==> 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 |
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
==> 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 |
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/local/etc isn't writable. | |
This can happen if you "sudo make install" software that isn't managed | |
by Homebrew. | |
If a brew tries to write a file to this folder, the install will\nfail during the link step. | |
You should probably `chown` /usr/local/etc | |
Some folders in /usr/local/share/locale aren't writable. | |
This can happen if you "sudo make install" software that isn't managed |
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
<?php | |
use Phinx\Migration\AbstractMigration; | |
class CreatePostsTable extends AbstractMigration | |
{ | |
/** | |
* Migrate Up. | |
*/ | |
public function up() |
OlderNewer