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 Foo { | |
method foo () { | |
ROUTE: for ^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
#!/bin/sh | |
#set -x | |
FILE=$1 | |
DEV=$2 | |
MOUNT=/tmp/garmin | |
FILE_BASENAME="${FILE%.gpx}" | |
FILE_DATES="$FILE_BASENAME-dates.gpx" |
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
use strict; | |
use warnings; | |
use HTTP::Tiny; | |
{ | |
my $ua = HTTP::Tiny->new(); | |
my $request = ''; | |
my $response = ''; |
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
content - контент | |
escaping - экранирование | |
footer - подвал | |
header - шапка | |
helper | |
layout - общий шаблон | |
plain text - текст без форматирования | |
plugin - расширение | |
raw bytes | |
render |
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 perl | |
use strict; | |
use warnings; | |
use Mojo::DOM; | |
use Data::Dumper; | |
my $file; |
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
maestro% ~/dev/mojo/script/mojo get --header http://ya.ru | |
Connection: Keep-Alive | |
Date: Fri, 16 Jul 2010 11:15:33 GMT | |
Server: Mojolicious (Perl) | |
Content-Length: 38 | |
Content-Type: text/plain | |
Congratulations, your Mojo is working!Couldn't open page "--header". |
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 perl | |
use strict; | |
use warnings; | |
my $query = join ' ' => @ARGV; | |
my $url = 'http://www.google.com/search'; | |
use Mojo::Client; | |
use Mojo::URL; |
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 perl | |
use strict; | |
use warnings; | |
use Mojo::Client; | |
my $client = Mojo::Client->new; | |
my $news = 'http://digg.com'; |
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 perl | |
use strict; | |
use warnings; | |
use FindBin; | |
BEGIN { | |
use lib "/Users/vti/dev/protocol-websocket/lib"; | |
} |
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
$app = Plack::Middleware::ReverseProxy->wrap($app); | |
$app = Plack::Middleware::RestrictedJSONP->wrap($app, path => qr{^/(?:author|release|pod)(?:$|/)}); |
OlderNewer