Douglas Campos qmx

View ir.log
1
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/htmlconverter.ja
View Test.java
1 2 3 4 5 6 7 8 9 10
@Test
public void testStackCleanup() {
DynObject e = (DynObject) (eval("function foo() { return new Error(); }; foo();"));
String stack = (String) e.get(getContext(), "stack");
System.out.println(stack);
assertThat(stack.split("\n").length).isEqualTo(4);
 
DynObject e2 = (DynObject) (eval("function baz() { return new Error(); }; baz();"));
String stack2 = (String) e2.get(getContext(), "stack");
System.out.println(stack2);
View gist:9399725
1 2 3 4 5 6 7 8
/V/v/g/dynjs git:classpath ❯❯❯ bin/dynjs --console ✭ ✱ ◼
dynjs console.
Type exit and press ENTER to leave.
dynjs> dynjs.classPath.push("/Users/qmx/dev/dynjs-0.2.2-SNAPSHOT/activemq-all-5.9.0.jar")
undefined
dynjs> org.apache.activemq.ActiveMQConnectionFactory.DEFAULT_BROKER_URL
failover://tcp://localhost:61616
dynjs> %
View gist:9376023
1 2 3 4 5 6 7 8 9
# These properties can be used to alter runtime behavior for perf or compatibility.
# Specify them by passing directly to Java -Ddynjs.<property>=<value>
 
################################################################################
# compiler
################################################################################
 
# Set compile mode: OFF = no compilation (interpreted); JIT = at runtime; FORCE = before execution
# Options: [OFF, FORCE, JIT], Default: JIT.
View keybase.md

Keybase proof

I hereby claim:

  • I am qmx on github.
  • I am qmx (https://keybase.io/qmx) on keybase.
  • I have a public key whose fingerprint is 41E3 D95A 0F4D BAF6 B30B 0B3D 9C07 7BDA 1C30 A949

To claim this, I am signing this object:

View gist:8797377
1 2 3 4 5 6 7 8 9 10
diff --git a/Useful-Vert.x-components-and-modules.md b/Useful-Vert.x-components-and-modules.md
index 1004aa0..150f379 100644
--- a/Useful-Vert.x-components-and-modules.md
+++ b/Useful-Vert.x-components-and-modules.md
@@ -59,7 +59,7 @@ If you're thinking of creating an application using Vert.x, here's a list of use
* io.vertx~lang-clojure - https://github.com/vert-x/mod-lang-clojure - Clojure API implementation for Vert.x
-* io.vertx~lang-dynjs - https://github.com/vert-x/mod-lang-php - JavaScript API implementation for Vert.x that uses the DynJS JavaScript engine
+* io.vertx~lang-dynjs - https://github.com/vert-x/mod-lang-dynjs - JavaScript API implementation for Vert.x that uses the DynJS JavaScript engine
View sync.md

aerogear-sync

While I was reviewing Summers' code and ideas, I realized that I really wanted everything he did, but as a second step after we nail down the basics.

basics?

Since we've been catering the enterprise market, this essentially means we need to get the boring stuff right first, then move over to the shiny stuff, like realtime data sync, update policies & friends.

data model

View gist:7587391
1 2
[alias]
pullify = config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
View hello.rs
1 2 3 4 5 6 7 8 9
extern mod extra;
use extra::getopts::groups::*;
use std::os;
use std::libc;
 
#[link_args = "-lsodium"]
extern {
fn crypto_box_curve25519xsalsa20poly1305_ref_keypair(pk: *mut libc::c_char, sk: *mut libc::c_char);
}
View HelloJite.java
1 2 3 4 5 6 7 8 9
package me.qmx.jipsy;
 
 
import me.qmx.jitescript.CodeBlock;
import me.qmx.jitescript.JiteClass;
 
import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Something went wrong with that request. Please try again.