This file contains hidden or 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 Test::Base; | |
{ | |
package TestApp; | |
use Ark; | |
package TestApp::Controller::One; | |
use Ark 'Controller'; | |
sub one :Local { |
This file contains hidden or 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 Test::Base; | |
{ | |
package TestApp; | |
use Ark; | |
package TestApp::Controller::Root; | |
use Ark 'Controller'; | |
has '+namespace' => default => ''; |
This file contains hidden or 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 Test::Base qw/no_plan/; | |
{ | |
package T; | |
use Ark; | |
package T::Controller::Root; | |
use Ark 'Controller'; | |
has '+namespace' => default => ''; |
This file contains hidden or 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 AnyEvent::AIO; | |
use IO::AIO; | |
use Fcntl; | |
warn "[pre]"; | |
my $num = 0; | |
my $max = 9; | |
for $num (0..$max) { | |
async_append( "temp.txt", "$num\n" ); |
This file contains hidden or 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 File::Find; | |
use Path::Class; | |
my $output = ''; | |
my %namespaces; | |
my $root = $ARGV[0]; |
This file contains hidden or 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
package App::Prove::Plugin::Aggregator; | |
use strict; | |
use warnings; | |
use File::Find; | |
use Path::Class; | |
use File::Temp qw/tempfile/; | |
# usage: prove -lr -PAggregator t |
This file contains hidden or 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
package org.libspark.flartoolkit.example { | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.PixelSnapping; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.events.SecurityErrorEvent; | |
import flash.media.Camera; |
This file contains hidden or 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 WWW::Mechanize::Firefox; | |
die "usage: $0 <url> <filename>" | |
unless scalar @ARGV == 2; | |
my ($url, $file) = @ARGV; |
This file contains hidden or 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
diff --git a/t/plugin_i18n.t b/t/plugin_i18n.t | |
index 1bbe98a..8bf8f2a 100644 | |
--- a/t/plugin_i18n.t | |
+++ b/t/plugin_i18n.t | |
@@ -17,9 +17,10 @@ use Ark::Test 'TestApp'; | |
$request->header( 'Accept-Language' => 'fr' ); | |
- ok( my $response = request($request), 'Request' ); | |
+ ok( my ($response, $c) = ctx_request($request), 'Request' ); |
This file contains hidden or 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 | |
exec setuidgid mash multilog t \ | |
s16777215 n100 . \ | |
s16777215 n100 -'*' +'*[error]*' ./errors |