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
004: af, | |
008: al, | |
010: aq, | |
012: dz, | |
016: as, | |
020: ad, | |
024: ao, | |
028: ag, | |
031: az, | |
032: ar, |
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
body { | |
background: lightblue; | |
} | |
canvas { | |
background: white; | |
margin: 10px; | |
padding: 10px; | |
} |
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
body { | |
background: lightblue; | |
} | |
canvas { | |
background: white; | |
margin: 10px; | |
padding: 10px; | |
} |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <modbus.h> | |
#include "timing.h" | |
#define SM4_ID 3 |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <modbus.h> | |
#define SM4_ID 3 | |
#define P120_ID 2 |
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
if (-d "++GITWEBSTATICDIR++") { | |
require Plack::App::URLMap; | |
require Plack::App::File; | |
my $urlmap = Plack::App::URLMap->new(); | |
$urlmap->map("/" => $app); | |
foreach my $static_url (@stylesheets, $stylesheet, $logo, $favicon, $javascript) { | |
next if (!defined $static_url || $static_url eq ""); | |
(my $static_file = $static_url) =~ s!^.*/!!; # basename |
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
sub to_psgi_app { | |
require CGI::Emulate::PSGI; | |
our $CGI = 'CGI'; | |
our $first_request = 1; | |
my $app = CGI::Emulate::PSGI->handler(sub { | |
CGI::initialize_globals(); | |
our $cgi = CGI->new(); |
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
<html> | |
<head> | |
<title> | |
Absolutely positioned block element | |
inside relatively positioned inline (or inline-block) element | |
</title> | |
<style> | |
div { | |
border: 1px dotted #a0a0a0; | |
} |
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
diff --git a/lib/HTML/Zoom/FilterBuilder.pm b/lib/HTML/Zoom/FilterBuilder.pm | |
index 50398b3..809e267 100644 | |
--- a/lib/HTML/Zoom/FilterBuilder.pm | |
+++ b/lib/HTML/Zoom/FilterBuilder.pm | |
@@ -381,7 +381,7 @@ alter the content of that stream. | |
This class defines the following public API | |
-=head2 set_attribute ( $attr=>value | {name=>$attr,value=>$value} ) | |
+=head2 set_attribute ( $attr=>$value | {name=>$attr,value=>$value} ) |
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
sub code_stream (&) { | |
my $code = shift; | |
return sub { | |
HTML::Zoom::CodeStream->new({ | |
code => $code, | |
}); | |
} | |
} | |
$zoom->select('.item')->repeat(code_stream { |