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 Parent; | |
use Moo; | |
has 'parent' => ( 'is' => 'ro' ); | |
sub core_attrs { | |
my ($self) = @_; | |
my $specs = 'Moo'->_constructor_maker_for('Parent')->all_attribute_specs; |
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
user@host:$ perl -v | |
This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi | |
(with 67 registered patches, see perl -V for more detail) | |
... | |
user@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 strict; | |
use warnings; | |
use Data::Dumper; | |
main(); | |
############################################################################## | |
sub main { | |
my @schedules = _init(); |
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 Text::Iconv; | |
my $converter = Text::Iconv->new('utf-8', 'ASCII//TRANSLIT'); | |
my $separator = '-'; | |
my $slug = lc $converter->convert('Coração de Anão'); |
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
name = Business-BR-Boleto-Renderer-PDF | |
author = Blabos de Blebe <blabos@cpan.org> | |
license = Perl_5 | |
copyright_holder = Blabos de Blebe | |
copyright_year = 2014 | |
version = 0.000001 | |
;[Prereqs::FromCPANfile] | |
[AutoPrereqs] |
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 Role; | |
use Moo::Role; | |
requires qw{ foo bar }; | |
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
[user@host]$ vmware-vdiskmanager -r <path_to_your_multiple_vmdk_files>/myfile.vmdk -t 2 mysinglefile.vmdk | |
... | |
[user@host]$ qemu-img convert -O raw myfile.vmdk myfile.bin | |
... | |
[user@host]$ VBoxManage convertfromraw myfile.bin myfile.vdi –variant standard |
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>Hello World</title> | |
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
var button; | |
button = document.getElementById("blue"); | |
button.onclick = function() { | |
change_color('blue'); |
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 5.018; | |
use Data::Dumper; | |
use Const::Fast; | |
const my $N => 1000; |
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 utf8; | |
use strict; | |
use warnings; | |
package App::Schema::ResultSet::User; | |
use Moose; | |
use namespace::autoclean; | |
use Try::Catch; |
NewerOlder