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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CSS3 Transition - Accordion sample</title> | |
<!-- 2012-01-10 - Alexander Sapozhnikov - http://shoorick.ru/ --> | |
<style> | |
body { | |
font-family: "Liberation Sans",sans-serif; | |
color: #000; | |
background-color: #fff; |
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 -nl | |
print $1 while m!(http://example.com/[^" >]+)!g |
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 -l | |
# COMPANY: South Ural State University | |
# CREATED: 09/20/2011 02:09:31 AM | |
use strict; | |
use warnings; | |
=head1 USAGE | |
./sort.pl |
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 -l | |
my @array = qw( alice bob charlie daddy elf ); | |
print @array; # alicebobcharliedaddyelf | |
my $size = @array; | |
print $size; # 5, same as length @array |
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 | |
use Lingua::Translit; | |
my $sample = 'Эй, жлоб! Где туз? Прячь юных съёмщиц в шкаф.'; | |
my $tr; | |
for ( 'ALA-LC RUS', 'ISO 9', 'DIN 1460 RUS', 'GOST 7.79 RUS', 'GOST 7.79 RUS OLD' ) { | |
$tr = new Lingua::Translit( $_ ); | |
printf "%17s %s\n", $_, $tr->translit( $sample ); |
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
head -n 1 tab-separated.txt \ | |
| perl -na -F'\t' \ | |
-e 'map { printf "=item %d\n\n%s / %s\n\n", $i++, chr(0x40+$i), $_ } @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
perl -le 'while(<*.png>){next if -l;print}' |
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
package MyApp::Model::DBI; | |
use strict; | |
use warnings; | |
use base 'Catalyst::Model::DBI'; | |
# skipped some configuration statements | |
__PACKAGE__->config( | |
'dsn' => 'dbi:mysql:' . $config->{'sql'}->{'database'} . ':' . $config->{'sql'}->{'host'}, |
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 Mojolicious::Lite; | |
get '/' => sub { | |
my $self = shift; | |
$self->render( | |
'template' => 'index', | |
'count' => int rand 33, | |
); |
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 Mojolicious::Lite; | |
get '/' => sub { | |
my $self = shift; | |
$self->render( | |
'template' => 'index', | |
'count' => int rand 33, | |
); |