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
i = 10 | |
d = [0...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
[1.3] | |
[1..3] | |
[1...3] | |
[1....3] |
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
fun | |
fun() | |
fun 1 | |
fun(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
fun; | |
fun(); | |
fun(1); | |
fun(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
console.log(a + b + c) | |
console.log(a +b + 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
-module(test1). | |
-export([start/0]). | |
%% Cowboy callbacks | |
-export([init/3, handle/2, terminate/2]). | |
start() -> | |
Port = 8081, | |
application:start(sockjs), |
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
-module(test2). | |
-export([start/0]). | |
%% Cowboy callbacks | |
-export([init/3, handle/2, terminate/2]). | |
start() -> | |
Port = 8081, | |
application:start(sockjs), |
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 net = require('net'); | |
console.log(" [.] Connecting to localhost:8000"); | |
var conn = net.createConnection(8000, '127.0.0.1'); | |
var data = [ | |
"GET /echo/1/1/websocket HTTP/1.1", | |
"Upgrade: WebSocket", | |
"Connection: Upgrade", |
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/bin/env escript | |
%%! -smp disable +A1 +K true -pz ./ebin -pa deps/cowboy/ebin -input | |
-module(cowboy_http10_bug). | |
-mode(compile). | |
-export([main/1]). | |
%% Cowboy callbacks | |
-export([init/3, handle/2, terminate/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
var net = require('net'); | |
console.log(" [.] Connecting to localhost:8000"); | |
var conn = net.createConnection(8000, '127.0.0.1'); | |
var data = [ | |
"GET /echo/1/1/websocket HTTP/1.1", | |
"Upgrade: WebSocket", | |
"Connection: Upgrade", |