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
$ toolset/run-tests.py --install server --test go | |
FWROOT is /home/vagrant/FrameworkBenchmarks | |
WARNING:root:results.json for test ec2 not found. | |
INSTALL: Installing server software (strategy=unified) | |
INSTALL: . $FWROOT/toolset/setup/linux/bash_functions.sh && . $FWROOT/toolset/setup/linux/prerequisites.sh (cwd=$FWROOTinstalls) | |
Prerequisites installed! | |
INFO:root:Running installation for directory /home/vagrant/FrameworkBenchmarks/frameworks/Go/go (cwd=/home/vagrant/FrameworkBenchmarks/frameworks/Go/go) | |
INFO:root:Loading environment from /home/vagrant/FrameworkBenchmarks/frameworks/Go/go/bash_profile.sh (cwd=/home/vagrant/FrameworkBenchmarks/frameworks/Go/go) |
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
$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Checking if box 'ubuntu/trusty64' is up to date... | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... | |
default: 8080 => 28080 (adapter 1) | |
default: 22 => 2222 (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... |
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
require 'protocol_buffers' | |
class User < ProtocolBuffers::Message | |
required :string, :name, 1 | |
required :string, :email, 2 | |
optional :int32, :logins, 3 | |
end | |
class Group < ProtocolBuffers::Message | |
repeated User, :users, 1 |
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
quorum-language$ cd Quorum3/SourceCode/ | |
SourceCode$ java -jar ../../QuorumTomcat/dependencies/Quorum.jar -name Quorum -compile main.quorum TypeCheckTesterGenerated.quorum GenericResolution.quorum TemplatingTesterGenerated.quorum ChainingTester.quorum AccessModifierContext.quorum ErrorBlockLabels.quorum ObjectAssignmentContext.quorum Action.quorum ExceptionTester.quorum ObjectToPrimitiveBooleanCast.quorum ActionCall.quorum ExplicitCastOpcode.quorum ObjectToPrimitiveIntegerCast.quorum ActionCallContext.quorum ExpressionsTester.quorum ObjectToPrimitiveNumberCast.quorum ActionCallOpcode.quorum FlipBooleanOpcode.quorum ObjectToPrimitiveTextCast.quorum ActionCallResolution.quorum FormalParameterContext.quorum Operation.quorum ActionContext.quorum FullClassDeclarationContext.quorum OutputContext.quorum ActionExpressionListContext.quorum GenericContext.quorum OutputOpcode.quorum ActionOpcode.quorum GenericDeclarationContext.quorum PackageContext.quorum ActionsNoClassContext.quorum HashListIterator.quorum ParentAssign |
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
$ ant | |
Buildfile: /Users/richardn/projects/quorum-language/plugins/ParserPlugin/build.xml | |
-pre-init: | |
-init-private: | |
-init-user: | |
-init-project: |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "jruby-httpclient", require: 'http_client' |
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
jruby -J-Djava.util.logging.config.file=logging.properties test.rb 2>&1 | grep FINE |
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
var request = require('request'); | |
var fs = require('fs'); | |
var url = process.argv[2]; // url of the site | |
var certFile = process.argv[3]; // certificate from server | |
var ca = fs.readFileSync(certFile, 'ascii'); | |
var options = { | |
url: url, | |
// rejectUnauthorized: false, |
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
# base for this file taken from here: https://github.com/GitHub30/php/blob/5.5/5.5/alpine/Dockerfile | |
FROM alpine:3.6 | |
ENV BASE_LINUX alpine | |
RUN apk add --no-cache --virtual .persistent-deps \ | |
ca-certificates \ | |
curl \ | |
tar \ | |
xz \ | |
apache2 \ |
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
def _flatten(values): | |
"""Recursively flattens a list using yield from""" | |
for v in values: | |
if (isinstance(v, list)): | |
yield from _flatten(v) # https://www.python.org/dev/peps/pep-0380/ | |
else: | |
yield v | |
def flattened_list(values): | |
"""Recursively flattens a list. If the passed in argument is not a list, an |