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
# This would be returned from a abtest-server and | |
# executed in mp.com on application load | |
# This code could be generated by a little webinterface or just be hardcoded for now | |
# singleton/static class | |
class Ab1GuestHeader extends MovieExplorer.AbTest | |
@name = "AB1: Guest Header" |
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
" Removes trailing spaces | |
function TrimWhiteSpace() | |
%s/\s*$// | |
'' | |
:endfunction | |
autocmd FileWritePre * :call TrimWhiteSpace() | |
autocmd FileAppendPre * :call TrimWhiteSpace() | |
autocmd FilterWritePre * :call TrimWhiteSpace() | |
autocmd BufWritePre * :call TrimWhiteSpace() |
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
class User | |
att_reader: username, email, newsletter | |
end | |
class UpdateUserEvent extends Event | |
attr_reader: sheldon_id, user | |
end | |
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
class TimeoutSoapClient extends SoapClient | |
{ | |
const TIMEOUT = 20; | |
public function __doRequest($request, $location, $action, $version, $one_way = 0) | |
{ | |
$url_parts = parse_url($location); | |
$host = $url_parts['host']; | |
$http_req = 'POST '.$location.' HTTP/1.0'."\r\n"; | |
$http_req .= 'Host: '.$host."\r\n"; | |
$http_req .= 'SoapAction: '.$action."\r\n"; |
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
opensuse-121-x64:~/wsdl2phpgenerator(php-vcr-test-fixtures)]$ phpunit | |
PHPUnit 3.7.29 by Sebastian Bergmann. | |
Configuration read from /home/vagrant/wsdl2phpgenerator/phpunit.xml.dist | |
........................EEEEE | |
Time: 11.49 seconds, Memory: 11.75Mb | |
There were 5 errors: |
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
// --------------------------------------------------------------- | |
//// Loading data from CSV | |
// --------------------------------------------------------------- | |
CREATE CONSTRAINT ON (p:Person) ASSERT p.id IS UNIQUE; | |
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE; | |
LOAD CSV WITH HEADERS FROM "file:///Users/adri/Downloads/neo4j-community-2.1.0-M01/employees.csv" AS l | |
CREATE (p:Person { id: toInt(l.employee_id), name: l.employee_firstname + " " + l.employee_lastname}); | |
CREATE CONSTRAINT ON (t:Tech) ASSERT t.id IS UNIQUE; |
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 app/console oro:install --env prod | tee install.log | |
Installing Oro Application. | |
Oro requirements check: | |
+---------+-------------------------------------------------------------------------------------------+ | |
| Check | Mandatory requirements | | |
+---------+-------------------------------------------------------------------------------------------+ | |
| OK | Vendor libraries must be installed | | |
| OK | app/cache/ directory must be writable | | |
| OK | app/logs/ directory must be writable | |
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
require("babel/register"); | |
const dependencies = require('./src/dependencies'); | |
var WebpackIsomorphicTools = require('webpack-isomorphic-tools'); | |
var chokidar = require('chokidar'); | |
var webpack = require('webpack'); | |
var config = require('./config/webpack.config.dev'); | |
var compiler = webpack(config); | |
var app = dependencies.expressApp; | |
var Mocha = require('mocha'); |
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
framework: | |
cache: | |
pools: | |
app.cache.doctrine_metadata: | |
adapter: cache.adapter.php_files | |
doctrine: | |
orm: | |
entity_managers: | |
default: |
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 | |
// Test this using following command | |
// php reactphp.php | |
// curl http://localhost:8080 -d '{"query": "query { echo(message: \"Hello World\") }" }' | |
// curl http://localhost:8080 -d '{"query": "mutation { sum(x: 2, y: 2) }" }' | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
use GraphQL\Executor\Promise\Adapter\ReactPromiseAdapter; | |
use GraphQL\GraphQL; | |
use GraphQL\Type\Definition\ObjectType; |
OlderNewer