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
/usr/local/java-apps | |
├── bin | |
│ └── myapp -> ../myapp/bin/myapp | |
└── myapp | |
├── bin | |
│ └── myapp | |
└── lib | |
├── dependency1.jar | |
├── dependency2.jar | |
├── dependency3.jar |
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
repositories { | |
maven { url 'http://internalrepo.example.com' } | |
} | |
dependencies { | |
runtime 'mygroup:myapp:1.0' | |
} | |
apply plugin: 'application' |
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
use Sys::SigAction qw(timeout_call); | |
my $timed_out = timeout_call 3, sub { # schedules SIGALRM | |
my $ctx = ZMQ::FFI->new(); | |
my $s = $ctx->socket(ZMQ_REQ); | |
$s->connect("ipc:///tmp/test-zmq-ffi-$$"); | |
$s->send('ohhai'); | |
$s->close(); # bug here, linger not set |
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
#include <zmq.h> | |
#include <assert.h> | |
#include <stdio.h> | |
int main(void) | |
{ | |
int rc; | |
void *context = zmq_ctx_new(); | |
void *socket = zmq_socket(context, ZMQ_SUB); |
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
use strict; | |
use warnings; | |
use Test::More; | |
use AnyEvent; | |
use EV; | |
use ZMQ::FFI; | |
use ZMQ::FFI::Constants qw(ZMQ_PUSH ZMQ_PULL); |
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
$ for i in {{1..10}}; do ./run syncsub & done | |
[1] 2719 | |
[2] 2720 | |
[3] 2721 | |
[4] 2722 | |
[5] 2723 | |
syncsub with jeromq | |
[6] 2725 | |
syncsub with jeromq | |
syncsub with jeromq |
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
import zmq | |
c = zmq.Context() | |
s = c.socket(zmq.DEALER) | |
s.connect('ipc://*') | |
s.send_string('ohhai') | |
s.send_string('ohhai') | |
s.send_string('ohhai') | |
print('Done') |
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
local *Foo::c = sub { print "IN MY C\n" }; | |
my $f = Foo->new(); | |
Foo::c(); | |
Foo::d(); | |
e(); | |
undef $f; | |
__END__ | |
Output |
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
t/fd.t .......... EV: error in callback (ignoring): zmq_msg_recv: Bad address at /home/calid/git/zmq-ffi/lib/ZMQ/FFI/ErrorHelper.pm line 83. | |
ZMQ::FFI::ErrorHelper::fatal(ZMQ::FFI::ZMQ3::Socket=HASH(0x200ced8), "zmq_msg_recv") called at /home/calid/git/zmq-ffi/lib/ZMQ/FFI/ZMQ3/Socket.pm line 125 | |
ZMQ::FFI::ZMQ3::Socket::recv(ZMQ::FFI::ZMQ3::Socket=HASH(0x200ced8)) called at t/fd.t line 24 | |
main::__ANON__(EV::IO=SCALAR(0x1a7dbe8), 1) called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent/Impl/EV.pm line 88 | |
eval {...} called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent/Impl/EV.pm line 88 | |
AnyEvent::CondVar::Base::_wait(AnyEvent::CondVar=HASH(0x1a7e2f0)) called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent.pm line 1994 | |
AnyEvent::CondVar::Base::recv(AnyEvent::CondVar=HASH(0x1a7e2f0)) called at t/fd.t line 49 | |
^C |
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
uploadArchives { | |
repositories { | |
mavenDeployer { | |
repository url: 'file:///tmp/testRepo' | |
pom.whenConfigured { p -> | |
// get all unresolved dependencies in our pom | |
def unresolved = p.getDependencies() | |
.grep { it.version == '+' } |
OlderNewer