These are field notes gathered during installation of website search facility for the ElasticSearch website.
You may re-use it to put a similar system in place.
The following assumes:
Feature: New Study | |
In order to create a new Study | |
As a Researcher | |
I must be able to enter information about the study and save it | |
Scenario Outline: Researcher adds new study | |
When I enter <study name> | |
And I enter <short url> | |
And I enter <welcome text> | |
And I set self registration to <self registration> |
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()} |
set :stages, %w(production staging) | |
set :default_stage, "staging" | |
require 'capistrano/ext/multistage' | |
# -------------------------------------------- | |
# Repository | |
# -------------------------------------------- | |
set :scm, :git # I am using git, so I specify it here | |
set :repository, "<repo>" # This is the path to the repository on the server, we pushed the code here earlier. |
These are field notes gathered during installation of website search facility for the ElasticSearch website.
You may re-use it to put a similar system in place.
The following assumes:
<?php | |
$r = new Respect\Rest\Router; | |
$r->get('/', function() { | |
return 'Hello World'; | |
}); | |
$r->get('/users', function() use($users) { | |
return $users->list()->toHTML(); //sample model/view call |
Open your console. | |
<script src="event-source.js"></script> |
// jQuery Deparam - v0.1.0 - 6/14/2011 | |
// http://benalman.com/ | |
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL | |
(function($) { | |
// Creating an internal undef value is safer than using undefined, in case it | |
// was ever overwritten. | |
var undef; | |
// A handy reference. | |
var decode = decodeURIComponent; |
The following describes the mandatory requirements that must be adhered to for autoloader interoperability.
\ <Vendor Name> \ (<Namespace>)* \ <Class Name>
DIRECTORY_SEPARATOR
when loading from the file system.DIRECTORY_SEPARATOR
. The "_" character has no special meaning in the namespace.Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.