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
// | |
// This server will start a bash shell and expose it | |
// over socket.io to a browser. See ./term.html for the | |
// client side. | |
// | |
// You should probably: | |
// | |
// npm install socket.io | |
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
// |
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
$ cat /tmp/foo.t | |
use Test::More; | |
plan tests => 1; | |
my $f = 1; | |
note(sprintf("Testing: %s", $f++)); | |
diag(sprintf("Testing: %s", $f++)); |
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/perl -w | |
use strict; | |
use Test::More tests => 7; | |
use WWW::Curl::Easy; | |
use HTTP::Request; | |
my $url = 'http://en.wikipedia.org/wiki/Main_Page'; | |
my $req = HTTP::Request->new( GET => $url ); | |
isa_ok( $req, 'HTTP::Request' ); |