Skip to content

Instantly share code, notes, and snippets.

@omega
omega / server.js
Created July 7, 2011 11:59 — forked from mixonic/server.js
Node.js + Socket.io + Bash. A collaborative terminal for your browser - updated for socket.io 0.7
//
// 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
//
@omega
omega / my results
Created February 24, 2011 07:30 — forked from anonymous/gist:841882
$ cat /tmp/foo.t
use Test::More;
plan tests => 1;
my $f = 1;
note(sprintf("Testing: %s", $f++));
diag(sprintf("Testing: %s", $f++));
We couldn’t find that file to show.
#!/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' );