<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
$this->bootstrap('frontController'); | |
$frontController = Zend_Controller_Front::getInstance(); | |
$apiVersionRoute = new Zend_Controller_Router_Route( | |
'api/:version/', | |
array(), | |
array('version' => 'v\d+') | |
); | |
$restRoute = new Zend_Rest_Route( |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
# .netrc | |
## generate token with https://help.github.com/articles/creating-an-oauth-token-for-command-line-use | |
machine github.com login <token> |
<?php | |
/** | |
* @file | |
* The router.php for clean-urls when use PHP 5.4.0 built in webserver. | |
* | |
* Usage: | |
* | |
* php -S localhost:3000 .htrouter.php | |
* | |
*/ |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
#! /bin/sh | |
# Installation | |
# - Move this to /etc/init.d/myservice | |
# - chmod +x this | |
# | |
# Starting and stopping | |
# - Start: `service myservice start` or `/etc/init.d/myservice start` | |
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop` |
/* | |
DS.attr('object') | |
*/ | |
App.ObjectTransform = DS.Transform.extend({ | |
deserialize: function(value) { | |
if (!$.isPlainObject(value)) { | |
return {}; | |
} else { | |
return value; | |
} |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: mailcatcher | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts mailcatcher. | |
# Description: This file starts the mailcatcher service on port 1081. | |
### END INIT INFO |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
box = 'ubuntu/trusty64' | |
hostname = 'emberclibox' | |
domain = 'example.com' | |
ip = '192.168.42.42' | |
ram = '512' | |
$rootScript = <<SCRIPT |