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
$rv->{ contacts } = [ map { { $_->{ contact_type } => $_->{ contact_data }, private => $_->{ private } } } map { { $_->get_columns() } } $person->search_related('contacts')->all ]; |
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/bash | |
exec multilog t ./main |
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 MyPackage; | |
use 5.020; | |
use utf8; | |
use File::Spec; | |
use File::Util qw( SL ); | |
use IO::All; | |
sub foo { |
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
my $oldfork = \&UNIVERSAL::fork; | |
sub fork { | |
# This makes child processes volunteer to be killed first by the kernel | |
# in case of a system-wide Out Of Memory error | |
my $rv = $oldfork->(@_); | |
eval { | |
open my $oom_adj, '>', "/proc/$$/oom_adj"; | |
print $oom_adj "15\n"; | |
close $oom_adj; | |
} unless $rv; |
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
:start ::= Source | |
:discard ~ whitespace | |
:default ::= action => [values] | |
lexeme default = latm => 1 action => [value] | |
whitespace ~ [\p{Separator}]+ | |
Source ::= HeaderFile | |
| ProgramFile | |
HeaderFile ::= Preamble UDFDefinitions | |
ProgramFile ::= Preamble OptionalUDFDefinitions PDFCalculation | |
PDFCalculation ::= ('pdf') Distribution |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Marpa in Perl</string> | |
<key>patterns</key> | |
<array> | |
<dict> | |
<key>begin</key> |
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 -T | |
use 5.018; | |
use Test::More; | |
use lib qw( /home/paul/grammar-marpa/lib ); | |
use grammar::marpa; | |
my $dsl = <<'END_OF_DSL'; | |
:default ::= action => ::first |
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
:start ::= Class | |
:discard ::= whitespace | |
:include = source.perl | |
:scopeName = source.mop | |
whitespace ~ [\s]+ | |
Class ::= ClassKeyword ClassModifiers '{' ClassContent '}' | |
ClassKeyword ::= 'class' ClassName scope => meta.class.mop | |
| 'role' ClassName scope => meta.class.mop | |
ClassContent ::= ClassContent ClassContent include => source.perl | |
| Has |
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 Net::Whois::Marpa::ARIN; | |
use 5.016; | |
use mop; | |
use IO::All; | |
use Marpa::R2; | |
class Net::Whois::Marpa::ARIN extends Net::Whois::Marpa with Net::Whois::Marpa::Logger { | |
has $!source = 'whois.arin.net'; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Perl mop</string> | |
<key>patterns</key> | |
<array> | |
<dict> | |
<key>include</key> |