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
public EscapeView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
this.context = context; | |
SurfaceHolder holder = getHolder(); | |
holder.addCallback(this); | |
this.thread = new EscapeThread(holder, context); | |
} | |
@Override | |
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { |
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
class EscapeThread extends Thread { | |
public SurfaceHolder surfaceHolder; | |
public Context context; | |
private boolean running; | |
public EscapeThread(SurfaceHolder holder, Context cont) { | |
this.surfaceHolder = holder; | |
this.context = cont; | |
this.running = 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
mixin = function (target, mixin, recurse) { | |
// Create an instance if we get a constructor | |
var m; | |
if (typeof mixin == 'function') { | |
m = new mixin(); | |
} | |
else { | |
m = mixin; | |
} | |
var baseObj = {}; |
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
2 0 1 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 0 0 1 0 3 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
1 0 0 0 1 0 2 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 2 0 0 0 0 0 3 0 1 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
2 0 2 0 0 0 0 0 4 0 1 0 0 0 2 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 2 0 2 |
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
int main(int argc, char *argv[]) { | |
int w; | |
int h; | |
int n; | |
int i; | |
int* array; | |
/* width and height are the first two integers on the stream */ | |
scanf("%d", &w); | |
scanf("%d", &h); |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
int main(int argc, char *argv[]) { | |
int w; | |
int h; | |
int n; | |
int i; |
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
opae:(master) node aconbere$ openssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key | |
Using default temp DH parameters | |
Using default temp ECDH parameters | |
ACCEPT | |
++++++++++++++++++ | |
opae:(master) node aconbere$ openssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key > blah.txt | |
^C | |
opae:(master) node aconbere$ cat blah.txt |
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
opae:(master) node aconbere$ NODE_DEBUG=7 ./build/debug/node_g ./test/simple/test-securepair-client.js | |
load "/home/aconbere/Projects/javascript/node/test/simple/test-securepair-client.js" for module "." | |
loadModule REQUEST ../common parent: . | |
RELATIVE: requested:../common set ID to: ../common from . | |
looking for "../common" in ["/home/aconbere/Projects/javascript/node/test/simple"] | |
load "/home/aconbere/Projects/javascript/node/test/common.js" for module "../common" | |
loadModule REQUEST path parent: ../common | |
load native module path | |
loadModule REQUEST assert parent: ../common | |
load native module assert |
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
opae:(master) node aconbere$ NODE_DEBUG=7 ./build/debug/node_g ./test/simple/test-securepair-client.js | |
load "/home/aconbere/Projects/javascript/node/test/simple/test-securepair-client.js" for module "." | |
loadModule REQUEST ../common parent: . | |
RELATIVE: requested:../common set ID to: ../common from . | |
looking for "../common" in ["/home/aconbere/Projects/javascript/node/test/simple"] | |
load "/home/aconbere/Projects/javascript/node/test/common.js" for module "../common" | |
loadModule REQUEST path parent: ../common | |
load native module path | |
loadModule REQUEST assert parent: ../common | |
load native module assert |
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
opae:(master) node aconbereopenssl s_server -accept 12351 -cert /home/aconbere/Projects/javascript/node/test/fixtures/agent.crt -key /home/aconbere/Projects/javascript/node/test/fixtures/agent.key | |
Using default temp DH parameters | |
Using default temp ECDH parameters | |
ACCEPT |