Skip to content

Instantly share code, notes, and snippets.

View luissquall's full-sized avatar

Luis Ramos luissquall

View GitHub Profile
{
"name": "hello-world",
"description": "hello world test app",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.x"
}
}
@luissquall
luissquall / 00-apache-php-osx.md
Last active November 8, 2017 23:58
Apache & PHP on OS X
@luissquall
luissquall / chars.php
Last active October 8, 2015 08:28
Characters assertion
<?php
public function testCharacters() {
$this->assertRegExp('/\w/', 'a');
preg_match_all('/[?.!\'\/,\\\;:-]/', '? . ! / , a \ ; : - \'', $matches);
$this->assertEqual($matches[0], array('?', '.', '!', '/', ',', '\\', ';', ':', '-', "'"));
}
?>
@luissquall
luissquall / zend_include_path.php
Created January 21, 2012 17:21
Zend include path
<?php ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__)); ?>