Skip to content

Instantly share code, notes, and snippets.

View memememomo's full-sized avatar
🏠
Working from home

Uchiko memememomo

🏠
Working from home
  • Aichi, Japan
View GitHub Profile
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var pfirst = $("p#first").html();
alert(pfirst);
$("p#first").html("<strong>変更後</strong>");
$("p#first").css("color","red");
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("input#button").click(function(){
$("input#text").val("ボタンから挿入");
});
});
use strict;
use warnings;
use Sys::Hostname;
my $hostname = hostname();
print "$hostname¥n";
use strict;
use warnings;
use FLV::Info;
my @targets = @ARGV;
my $reader = FLV::Info->new;
for my $target (@targets) {
eval { $reader->parse($target); };
#!/usr/bin/perl
use Mojolicious::Lite;
use Data::Section::Simple;
my $vpath = Data::Section::Simple->new()->get_data_section();
plugin 'xslate_renderer' => {
template_options => { path => [$vpath] },
};
use Mojolicious::Lite;
use File::Basename;
use File::Spec;
my $base = File::Spec->rel2abs(dirname(__FILE__));
app->start($ARGV[0] ? $ARGV[0] : 'psgi');
use strict;
use warnings;
use RPC::XML;
use feature qw/say/;
say res(1);
say res(1.0);
say res(1.1);
say res("test");
say res([1,2,3,4]);
use strict;
use warnings;
use RPC::XML::Client;
my $cli = RPC::XML::Client->new('http://localhost:3000/');
my $resp = $cli->send_request('echo', "hello");
warn $resp->value;
#!/usr/bin/evn perl
use strict;
use warnings;
use utf8;
BEGIN { $ENV{MOJO_POLL} = $ENV{MOJO_NO_IPV6} = 1 }
use Mojo::IOLoop;
use strict;
use warnings;
use Mojo::Client;
my $client = Mojo::Client->new;
my $base_url = 'http://localhost:3000';