This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML5 boilerplate—all you really need…</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
This file contains 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 | |
// start server | |
$server = new SoapServer($wsdl); | |
$functions = $server->getFunctions(); | |
$server->addFunction('Authenticate'); | |
$server->handle(); | |
/** | |
* 20120424.20:29:18 UTC : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'QuickBooks Integrator', username = 'testuser' | |
20120424.20:29:18 UTC : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="testuser"><password=<MaskedForSecurity> |
This file contains 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('includes/init.php'); | |
/** | |
* QB_xml_request | |
* | |
* This class turns the posted xml file into a | |
* key/value pair object we can work with. | |
* | |
* @param xml object array |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
echo '<pre>'; | |
print_r(\$$1); | |
echo '</pre>'; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>phppre</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.php</scope> |
This file contains 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
➜ dev vagrant provision | |
==> default: Running provisioner: shell... | |
default: Running: C:/cygwin64/tmp/vagrant-shell20140703-5844-wotlfe.sh | |
==> default: stdin: is not a tty | |
==> default: Ign http://us.archive.ubuntu.com precise InRelease | |
==> default: Ign http://us.archive.ubuntu.com precise-updates InRelease | |
==> default: Ign http://us.archive.ubuntu.com precise-backports InRelease | |
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg | |
==> default: Hit http://us.archive.ubuntu.com precise-updates Release.gpg | |
==> default: Ign http://security.ubuntu.com precise-security InRelease |
This file contains 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 | |
// http://stackoverflow.com/questions/8020947/how-to-obtain-a-nested-html-list-from-objects-array-recordset | |
function render_tree($tree) | |
{ | |
echo '<ul>'; | |
foreach ($tree as $node) | |
{ | |
render_node($node); | |
} | |
echo '</ul>'; |